<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ardit Xharri on Medium]]></title>
        <description><![CDATA[Stories by Ardit Xharri on Medium]]></description>
        <link>https://medium.com/@arditxharri?source=rss-ae26e561c904------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*RzpsfM94hLYDFcJI</url>
            <title>Stories by Ardit Xharri on Medium</title>
            <link>https://medium.com/@arditxharri?source=rss-ae26e561c904------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 18:24:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arditxharri/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[KUBERNETES cheat sheet for daily use/troubleshoot.]]></title>
            <link>https://blog.devops.dev/kubernetes-cheat-sheet-for-daily-use-troubleshoot-2791bbbf1e14?source=rss-ae26e561c904------2</link>
            <guid isPermaLink="false">https://medium.com/p/2791bbbf1e14</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[troubleshooting]]></category>
            <dc:creator><![CDATA[Ardit Xharri]]></dc:creator>
            <pubDate>Wed, 31 Jan 2024 11:49:47 GMT</pubDate>
            <atom:updated>2024-01-31T18:30:20.438Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Note</em>: <strong>Deployment &gt; ReplicaSet &gt; Pod</strong></blockquote><blockquote><strong>Deployment </strong>manages updates and scaling of ReplicaSets.</blockquote><blockquote><strong>ReplicaSet </strong>ensures a specified number of identical pods are running.</blockquote><blockquote><strong>Pod </strong>is the smallest deployable unit. A pod can have one or more containers.</blockquote><p>Create a single pod.</p><pre># Create a single pod<br>kubectl run nginx --image nginx<br><br># Create a single pod with a custom command<br>kubectl run ping-pod --image alpine --command -- ping 1.1.1.1</pre><p>Create a deployment.</p><pre># Create a deployment<br>kubectl create deployment nginx --image nginx<br><br># Create a deployment with a custom command<br>kubectl create deployment ping-deploy --image alpine -- ping 1.1.1.1</pre><p>Inspecting Kubernetes Resources with Get</p><pre># You can always use the &quot;--help&quot; option to get additional help.<br><br># List our common resources (in the default namespace)<br>kubectl get all<br><br># Deploy two replicas of the Apache web server using the &quot;httpd&quot; Docker image in Kubernetes.<br>kubectl create deployment my-apache --image httpd --replicas 2<br><br># Show more with a &quot;wide&quot; output<br>kubectl get all -o wide<br><br># Display everything about a resource in YAML<br>kubectl get deploy/my-apache -o yaml<br><br># Display all pods attached to the app named &quot;my-apache&quot;<br>kubectl get pods -l app=my-apache</pre><p>Inspecting Resources with Describe</p><pre># Show formatted details about the deployment, including events<br>kubectl describe deploy/my-apache<br><br># Show details about a pod, including events<br>kubectl describe pod/my-apache-123<br><br># Show information about the nodes in the Kubernetes cluster, displaying details such as their names, statuses, and other relevant metadata.<br>kubectl get nodes<br><br># Show inforamtion about the specific node named &quot;docker-desktop&quot; in the Kubernetes cluster, including additional details like IP addresses, roles, and age<br>kubectl get node/docker-desktop -o wide<br><br># Shows an extensive breakdown of the configuration and status of the &quot;docker-desktop&quot; node within the Kubernetes cluster, offering insights into its capacity, allocated resources, and system conditions.<br>kubectl describe node/docker-desktop</pre><p>Watching Resources</p><pre># For this you need 2 windows open, one to watch the logs and the other to perform actions<br># in first window<br>kubectl get pods -w<br><br># in second window<br>kubectl delete pod/my-apache-123<br><br># in first window<br>kubectl get events<br>kubectl get events --watch-only<br><br># in second window<br>kubectl delete pod/my-apache-123</pre><p>Container Logs in Kubernetes</p><pre># Retrieve the logs from the pods managed by the &quot;my-apache&quot; deployment in Kubernetes.<br>kubectl logs deploy/my-apache<br><br># Continuously displays the latest log entry from the pods managed by the &quot;my-apache&quot; deployment.<br>kubectl logs deploy/my-apache --follow --tail 1<br><br># Retrieve the logs specifically from the container named &quot;httpd&quot; within the pod named &quot;my-apache-xx-yy&quot; in Kubernetes.<br>kubectl logs pod/my-apache-1234 -c httpd<br><br># Fetch logs from all containers within the pod named &quot;my-apache-xx-yy&quot; in Kubernetes, providing a comprehensive view of the pod&#39;s activity.<br>kubectl logs pod/my-apache-1234 --all-containers=true<br><br># Display logs from all pods labeled &quot;app=my-apache&quot; in Kubernetes.<br>kubectl logs -l app=my-apache</pre><p>Deleting resources</p><pre># Remove the Deployment <br>kubectl delete deployment my-apache<br># *NOTE* : Deleting a Deployment will also delete the ReplicaSets,Pods and Services managed by that Deployment<br><br># Remove all resources attached to the app named &quot;my-apache&quot;<br>kubectl delete pods,deploy,services -l app=my-apache</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2791bbbf1e14" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/kubernetes-cheat-sheet-for-daily-use-troubleshoot-2791bbbf1e14">KUBERNETES cheat sheet for daily use/troubleshoot.</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create a Drupal & Postgres SQL installation using Docker Compose]]></title>
            <link>https://blog.devops.dev/create-a-docker-compose-using-drupal-postgres-sql-bf435974ffb0?source=rss-ae26e561c904------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf435974ffb0</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-compose]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Ardit Xharri]]></dc:creator>
            <pubDate>Tue, 23 Jan 2024 14:37:48 GMT</pubDate>
            <atom:updated>2024-12-04T15:06:57.862Z</atom:updated>
            <content:encoded><![CDATA[<p>Create a Dockerfile for your Drupal Container</p><p>File: Dockerfile</p><pre># Select an image to use<br>FROM drupal:9<br><br># Update the APT package index<br># Install GIT excluding unnecessary dependencies<br># Remove the package lists retrieved during the apt-get update process<br>RUN apt-get update \<br>    &amp;&amp; apt-get install -y --no-install-recommends \<br>    git \<br>    &amp;&amp; rm -rf /var/lib/apt/lists/*<br><br># Set the working directory to /var/www/html/themes<br>WORKDIR /var/www/html/themes<br><br># Clones the branch 8.x-4.x<br># Change the ownership of the &#39;bootstrap&#39; directory and its contents to the &#39;www-data&#39; user and group<br>RUN git clone --branch 8.x-4.x --single-branch --depth 1 https://git.drupalcode.org/project/bootstrap.git \<br>    &amp;&amp; chown -R www-data:www-data bootstrap<br><br># Set the working directory to /var/www/html<br>WORKDIR /var/www/html</pre><p>Create your Docker Compose file containing 2 services: Drupal &amp; Postgres.</p><p>File: docker-compose.yml</p><pre>services:<br>  drupal:<br>    image: custom-drupal #image to be used for drupal container<br>    build: . #Builds the docker compose in the current direcory<br>    ports:<br>      - &quot;8090:80&quot; #Expose your drupal application from port 80 to port 8090<br>    volumes: #Mount volumes for persistent data<br>#This will create a folder on your host named: drupal-modules where <br>#data from /var/www/html/modules will be stored. Same goes for other volumes<br>      - drupal-modules:/var/www/html/modules<br>      - drupal-profiles:/var/www/html/profiles       <br>      - drupal-sites:/var/www/html/sites      <br>      - drupal-themes:/var/www/html/themes<br>  postgres: #image to be used for postgres<br>    image: postgres:14<br>    environment:<br>      - POSTGRES_PASSWORD=mypasswd<br>    volumes:<br>      - drupal-data:/var/lib/postgresql/data<br><br>volumes:<br>  drupal-data:<br>  drupal-modules:<br>  drupal-profiles:<br>  drupal-sites:<br>  drupal-themes:</pre><p>Go to the folder which contains the Dockerfile and the Docker Compose and open the terminal. Type:</p><pre>docker-compose up<br><br>*Note - For detached mode type*<br><br>docker-compose up -d</pre><p>Wait for the images to donwload and build. After finish you can check the running containers by runing:</p><pre>docker ps</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GTP5xwoIZy25fuHbSxvhoA.jpeg" /></figure><p>Access Drupal on the specified port in the docker compose file (port: 8090 in this case)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*lHs386hk_OrM78vSdfNHKg.png" /></figure><p>Additionally, you can bring down your docker compose by typing:</p><pre>docker compose down</pre><p>Note: <strong><em>docker-compose up / down </em></strong>is the old way of using the docker compose command and the new way of using it is <strong><em>docker compose up / down, b</em></strong>ut Docker is backwards compatible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf435974ffb0" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/create-a-docker-compose-using-drupal-postgres-sql-bf435974ffb0">Create a Drupal &amp; Postgres SQL installation using Docker Compose</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Windows Commands for daily troubleshooting for SysA]]></title>
            <link>https://arditxharri.medium.com/windows-commands-for-daily-troubleshooting-for-sysa-928010758e8c?source=rss-ae26e561c904------2</link>
            <guid isPermaLink="false">https://medium.com/p/928010758e8c</guid>
            <category><![CDATA[powershell]]></category>
            <category><![CDATA[active-directory]]></category>
            <category><![CDATA[windows]]></category>
            <dc:creator><![CDATA[Ardit Xharri]]></dc:creator>
            <pubDate>Mon, 22 Jan 2024 15:43:37 GMT</pubDate>
            <atom:updated>2024-01-24T09:33:37.556Z</atom:updated>
            <content:encoded><![CDATA[<h3>Windows Commands for daily troubleshooting for SysAdmins</h3><blockquote>Note: This list will be updated as i use the help of <strong>Powershell </strong>for daily tasks.</blockquote><p>Check if a user is locked in <strong>PowerShell</strong></p><pre>Get-ADUser -Identity &lt;SamAccountName&gt; -Properties LockedOut</pre><p>Check when a password expires for a user in Active Directory (AD) via <strong>PowerShell</strong></p><pre>net user username /domain | Select-String &quot;Password expires&quot;</pre><p>How to check if Active Directory services are enabled on a Windows server using <strong>PowerShell</strong></p><pre>Get-WindowsFeature -Name AD-Domain-Services</pre><p>List all users using windows PowerShell</p><pre>Get-LocalUser</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=928010758e8c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>