<?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 Sen Sri on Medium]]></title>
        <description><![CDATA[Stories by Sen Sri on Medium]]></description>
        <link>https://medium.com/@sensri108?source=rss-35ca85664e8f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*legdU0a2WHh5dwZ7.jpg</url>
            <title>Stories by Sen Sri on Medium</title>
            <link>https://medium.com/@sensri108?source=rss-35ca85664e8f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:11:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sensri108/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[Modernizing Infrastructure: by Migrating from VMware to KubeVirt using Portworx]]></title>
            <link>https://medium.com/@sensri108/modernizing-infrastructure-by-migrating-from-vmware-to-kubevirt-using-portworx-23b9646bae02?source=rss-35ca85664e8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/23b9646bae02</guid>
            <category><![CDATA[kubevirt]]></category>
            <category><![CDATA[vmware]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[redhat-openshift]]></category>
            <category><![CDATA[portworx]]></category>
            <dc:creator><![CDATA[Sen Sri]]></dc:creator>
            <pubDate>Wed, 26 Nov 2025 23:20:28 GMT</pubDate>
            <atom:updated>2025-11-28T18:08:56.722Z</atom:updated>
            <content:encoded><![CDATA[<p>In the fast-moving IT world, AI is the key technology trend influencing boardroom and IT decisions. Whether your company is using predictive or generative AI (GenAI), Kubernetes is foundational for successful AI/ML workflows. While most organizations building with AI focus on accelerated compute, models, and applications, data and data infrastructure like <a href="https://portworx.com/use-case/kubernetes-storage/">Kubernetes storage</a> is often overlooked. Training data, inference, and fine-tuning happens continuously, making effective data management crucial for ensuring that AI applications run quickly, accurately, and cost-effectively.. Organizations are increasingly looking to unify their compute footprint under <strong>Kubernetes</strong> — not just for containers but also for traditional Virtual Machines (VMs). In this context, Kubernetes-native virtualization, most notably through <strong>KubeVirt</strong>, is emerging as a compelling alternative to legacy hypervisor platforms like VMware. This shift is not just about cost or consolidation; it is about aligning infrastructure to cloud-native principles, reducing complexity, and enabling evolutionary modernization.</p><p>This article explores the transition, detailing the architectural differences, the role of enterprise solutions like Red Hat OpenShift, and the critical function of shared storage for live migration.</p><ol><li><strong>VMware vs. KubeVirt: Core Architectural Differences:<br></strong>KubeVirt is an <strong>add-on to Kubernetes</strong> that provides virtualization functionality by delegating scheduling, networking, and storage to the Kubernetes control plane. This differs fundamentally from VMware’s dedicated hypervisor model.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q_PFXXQwkg3lxZJec-HXmw.png" /></figure><p><strong>2. KubeVirt Architecture and CRDs</strong></p><p>KubeVirt extends the Kubernetes API by introducing new object types via <strong>Custom Resource Definitions (CRDs)</strong>. This is the core architectural mechanism that allows virtualization workflows to be driven by Kubernetes conventions. Refer <a href="https://kubevirt.io/user-guide/architecture/">https://kubevirt.io/user-guide/architecture/</a></p><p><strong>Foundational KubeVirt CRDs<br></strong>The virtualization management is centered around two primary CRDs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-x7dOkKny7LRf9TLVhCEiQ.png" /></figure><p>The <strong>virt-controller</strong> watches the VirtualMachine objects and manages the associated Pods, while the <strong>virt-handler</strong> daemon on each node ensures the state of the VMIs matches the required configuration.</p><p><strong>3. Red Hat OpenShift and Enterprise Migration</strong></p><p>KubeVirt is the open-source foundation for <strong>Red Hat OpenShift Virtualization</strong>, which provides an enterprise-grade solution for migration and unified management on the trusted OpenShift platform.</p><p><a href="https://developers.redhat.com/products/mtv/overview"><strong>Red Hat Migration Toolkit for Virtualization (MTV)</strong></a></p><p>To simplify the transition from traditional hypervisors like VMware, Red Hat offers the <strong>Migration Toolkit for Virtualization (MTV)</strong> .</p><ul><li><strong>Automation:</strong> MTV automates VM discovery, resource mapping, and data transfer, reducing manual effort and complexity in migrating large-scale VM deployments .</li><li><strong>Target Platform:</strong> MTV is designed to seamlessly move workloads from sources like VMware vSphere to <strong>OpenShift Virtualization</strong> (KubeVirt), enabling organizations to start modernizing immediately without refactoring applications.</li><li><strong>Migration Methods:</strong> The toolkit supports various data copy methods, including <strong>Filesystem copy</strong> and cloud-provider <strong>Snapshot copy</strong>, enabling high performance and minimal downtime .</li></ul><p><strong>4. Practical Migration Path: vSphere → KubeVirt Blueprint</strong></p><p>Moving from a mature hypervisor like vSphere to KubeVirt requires a phased, controlled approach. This field-tested blueprint ensures minimal disruption and full operational validation.</p><p><strong>Phase 1: Discovery &amp; Assessment</strong></p><p>The goal is to understand the complexity and readiness of the source environment.</p><ul><li><strong>Inventory VMs:</strong> Detail resource utilization (CPU, RAM, disk), networking configuration (VLANs, overlays), application dependencies, and external integrations.</li><li><strong>Check OS Compatibility:</strong> Validate guest Operating System compatibility with the KVM/QEMU hypervisor and verify that <strong>VirtIO drivers</strong> can be installed for optimal performance under KubeVirt .</li><li><strong>Identify Disk Formats:</strong> Determine the format of virtual disks (e.g., VMDK) and assess the use of snapshots or thin provisioning for conversion planning.</li><li><strong>Performance Baseline:</strong> Measure current performance metrics (CPU, memory, I/O) to identify regressions post-migration.</li></ul><p><strong>Phase 2: Preparation and Pre-Migration Tasks</strong></p><p>Prepare the source VMs and the target environment.</p><ul><li><strong>Backup VMs:</strong> Perform a full backup of all critical VMs and data before any conversion attempt.</li><li><strong>Install/Validate VirtIO Drivers:</strong> Ensure the appropriate VirtIO drivers are installed inside the guest OS. This is crucial for optimal networking and storage I/O performance in the KubeVirt environment.</li><li><strong>Clean Up Disks:</strong> Zero out free blocks and reduce disk fragmentation to improve the efficiency and speed of the disk image transfer.</li><li><strong>Disable VMware Agents:</strong> Remove or disable any VMware-specific agents or tools (like VMware Tools hooks) that could interfere with KubeVirt/KVM operation.</li></ul><p><strong>Phase 3: Convert and Export VM Disk</strong></p><p>The disk image is the heaviest component to move.</p><ul><li><strong>Offline Conversion:</strong> Power off the VM, export the disk, and convert the format (e.g., VMDK) to QCOW2 or raw format using tools like virt-v2v or qemu-img.</li><li><strong>Automated / Bulk Tools:</strong> Utilize specialized tools such as <strong>Forklift</strong> (part of the <a href="https://konveyor.io/">Konveyor</a> project) or the Red Hat <strong>Migration Toolkit for Virtualization (MTV)</strong> to orchestrate and automate bulk conversions and imports into the Kubernetes environment.</li><li><strong>Validate Integrity:</strong> Verify the data integrity of the converted disk image.</li></ul><p><strong>Phase 4: Kubernetes &amp; KubeVirt Environment Setup</strong></p><p>Configure the destination to receive the workloads.</p><ul><li><strong>Provision Cluster:</strong> Deploy a Kubernetes cluster (or Red Hat OpenShift) sized adequately for both container and VM workloads.</li><li><strong>Install KubeVirt:</strong> Install the KubeVirt operator and its CRDs.</li><li><strong>Configure Storage:</strong> Define <strong>CSI StorageClasses</strong> for block volumes (e.g., Ceph RBD, or <strong>Portworx</strong> for live migration support) and ensure they are dynamically provisionable.</li><li><strong>Set up Networking:</strong> Use advanced CNI plugins like <strong>Multus</strong> for multiple network interfaces per VM, and establish network policies and overlays as needed.</li></ul><p><strong>Phase 5: Import and Create VMs in KubeVirt</strong></p><p>Ingest the disk data and instantiate the VM objects.</p><ul><li><strong>Data Ingestion:</strong> Use the <strong>Containerized Data Importer (CDI)</strong> to ingest the converted disk images into Persistent Volume Claims (PVCs) within the cluster.</li><li><strong>Define VM:</strong> Craft the <strong>VirtualMachine YAML/CRD</strong> manifesto to precisely match the required CPU, memory, disk, and interface configurations of the source VM.</li><li><strong>Start &amp; Validate:</strong> Start the VM and immediately validate the OS boot, driver readiness, network connectivity, and core services.</li></ul><p><strong>Phase 6: Testing &amp; Validation</strong></p><p>Prove the workload is fully functional and meets service requirements.</p><ul><li><strong>Functionality Test:</strong> Verify all application dependencies, network access, and services are running correctly.</li><li><strong>Performance Comparison:</strong> Compare run-time metrics (CPU, I/O, latency) against the Phase 1 baseline to confirm performance parity.</li><li><strong>Operational Validation:</strong> Test failover, backup/restore, and live migration capabilities in the new KubeVirt environment.</li></ul><p><strong>Phase 7: Final Cutover &amp; Transition</strong></p><p>The moment of truth for production workloads.</p><ul><li><strong>Maintenance Window:</strong> Schedule controlled maintenance windows for each application group.</li><li><strong>Final Data Sync:</strong> Freeze changes on the vSphere side and sync the latest disk image to KubeVirt.</li><li><strong>Cutover Traffic:</strong> Bring up the final VM in KubeVirt and reconfigure DNS, load balancers, or traffic routers to point to the new instance.</li><li><strong>Rollback Strategy:</strong> Maintain a clear rollback plan (e.g., reverting to the standby vSphere instance) throughout the stabilization period.</li></ul><p><strong>Phase 8: Decommission &amp; Optimize</strong></p><p>Realizing the TCO benefits and operational gains.</p><ul><li><strong>Decommission:</strong> Once stable, decommission or repurpose the legacy vSphere resources.</li><li><strong>Refine Day-2 Operations:</strong> Optimize CI/CD pipelines, implement Kubernetes Operators for VM lifecycle automation, and refine resource scaling and cost monitoring.</li><li><strong>Modernize:</strong> Identify suitable candidates for further refactoring from VMs to containers.</li></ul><p><strong>5. Technical Deep Dive: </strong><a href="https://portworx.com/use-case/kubernetes-storage/"><strong>Kubernetes storage</strong></a><strong> using</strong> <strong>Portworx and </strong><a href="https://docs.portworx.com/portworx-enterprise/platform/provision-storage/kubevirt-vms"><strong>KubeVirt Live Migration</strong></a></p><p><strong>Live Migration</strong> — moving a running VM from one host to another without interruption — is a core enterprise requirement. In KubeVirt, this feature relies on the underlying storage supporting <strong>ReadWriteMany (RWX) access mode</strong> via the CSI specification.</p><p><strong>Portworx</strong> integrates deeply with KubeVirt to provide this critical functionality:</p><ul><li><strong>RWX Block Volumes:</strong> Portworx Enterprise offers <strong>RWX block volumes</strong> (e.g., using the px-rwx-block-kubevirt StorageClass) optimized for KubeVirt. This shared block access is a necessity for live migration, as both the source and target nodes must concurrently access the volume’s data.</li><li><strong>Hyperconvergence and Collocation:</strong> Portworx ensures data volumes are <strong>collocated</strong> (placed on nodes where volume replicas exist), enabling VMs to be hyperconverged. During node maintenance or failure, Portworx ensures a seamless live migration to a node with data proximity, ensuring continued high availability and performance .</li><li><strong>Simplified Data Path:</strong> By supporting <strong>Shared Raw Block</strong> access, Portworx simplifies the architecture and can provide better I/O performance compared to traditional shared file/NFS solutions often used for RWX, which is critical for latency-sensitive workloads.</li></ul><p><strong>Live Migration</strong> is a foundational feature that enables moving a running VirtualMachineInstance (VMI) from one Kubernetes node to another with minimal or zero downtime. The feasibility and performance of this process are critically dependent on the underlying storage layer.</p><p><strong>KubeVirt Live Migration Mechanism</strong></p><ol><li><strong>Shared State:</strong> When a live migration is initiated via the Kubernetes API, the virt-controller coordinates the process. The process requires transferring the VM’s active memory state and CPU registers from the source node to the target node.</li><li><strong>Storage Requirement:</strong> The most essential requirement for non-disruptive migration is that the VM’s disk volume must be accessible simultaneously by both the source node (running the original virt-launcher pod) and the target node (running the new virt-launcher pod). This necessitates a storage solution that supports the <strong>ReadWriteMany (RWX)</strong> access mode, as defined by the Kubernetes CSI specification.</li><li><strong>Migration Flow:</strong> The <strong>KubeVirt</strong> components manage the migration:</li></ol><ul><li>The virt-controller initiates the process.</li><li>The virt-handler daemon on the source node communicates with the virt-launcher pod to begin the memory transfer to the target node.</li><li>Once the memory synchronization is complete and the difference is minimal, the VM is paused on the source node, the final data is transferred, and the VM resumes execution on the target node.</li></ul><p><strong>How Portworx Enables Seamless Live Migration:<br></strong>Portworx Enterprise acts as the unified, Kubernetes-native data management layer that satisfies the demanding requirements of live migration.</p><p>In essence, <a href="https://docs.portworx.com/portworx-csi/provision-storage/kubevirt-vms">Portworx bridges</a> the gap between the operational expectations of traditional virtualization (high availability, seamless mobility) and the agility of the cloud-native Kubernetes platform by providing a powerful, high-performance, RWX storage layer for VMs.</p><p>Contact me for more details. — sensri@outlook.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23b9646bae02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes Network Communication Overview — Part I]]></title>
            <link>https://medium.com/@sensri108/kubernetes-network-communication-overview-part-i-c95bf04e9894?source=rss-35ca85664e8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c95bf04e9894</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[network]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[containers]]></category>
            <dc:creator><![CDATA[Sen Sri]]></dc:creator>
            <pubDate>Tue, 25 Aug 2020 20:16:03 GMT</pubDate>
            <atom:updated>2022-05-31T04:07:31.342Z</atom:updated>
            <content:encoded><![CDATA[<h3>Kubernetes Network Communication Overview — Part I</h3><p>I had never done anything with networks before learning Kubernetes — I just wanted to deploy my containerized application in the Kubernetes cluster!. One of the hardest things to learn about Kubernetes as a software engineer is how networking works.</p><p>Essential Things to understand about network communication in Kubernetes</p><ol><li>Communication between containers in the same pod</li><li>Communication between pods on the same node</li><li>Communication between pods on different nodes</li><li>Communication between pods and services</li><li>How does DNS work? How do we discover IP addresses?</li><li>Communication-based on the routing rules (Kubernetes Ingress)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*gKDBUIcqHGDnyVQ_H8Rzcg.png" /></figure><h3>1. Communication between containers in the same pod</h3><p>First, if you’ve got two containers running in the same pod, how do they talk to each other?</p><p>This happens via a shared file system (localhost) and localhost network interface(port numbers). Just like when you’re running multiple servers on your own laptop.</p><p>This is possible because containers in the same pod are in the same network namespace — they share networking resources.</p><p><strong>Example:</strong></p><p><strong>Shared Volume Communication:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*tbhHJHPzWxa7MeB7N4jxOg.png" /></figure><p>We can test this by using the K8s provided example, two-container-pod, and modifying it slightly. <a href="https://k8s.io/examples/pods/two-container-pod.yaml">https://k8s.io/examples/pods/two-container-pod.yaml</a> . When we use the shared volume, Kubernetes will create a volume in the pod which will be mapped to both containers. In the <strong>“nginx-container”</strong>, files from the shared volume will map to the <strong>“/usr/share/nginx/html”</strong> directory, while in the <strong>“debian-container”</strong> files will map to the <strong>“/pod-data”</strong> directory. When we update the <strong>“index.html”</strong> file from the Debian container, this change will also be reflected in our Nginx container, thereby providing a mechanism for our helper (Debian) to push and pull data to and from Nginx.</p><h4>Localhost network interface (port numbers) Communication:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*LlA2r4Hk-6QQ2sYnjF6hZg.png" /></figure><p>In the second scenario, the shared volume has been removed from the pod and a message has been written in the <strong>“index.html”</strong> file which only resides in the Nginx container. As previously mentioned, the other method for multiple containers to communicate within a pod is through the localhost interface and the port number to which they’re listening.</p><p>In this example Nginx is listening on port 80, therefore when we run the<strong> “curl https://localhost”</strong> command from Debian container we can see that the <strong>“index.html“</strong> page is served back to us from Nginx.</p><p>Here’s the <strong>“nginx-container”</strong> showing the contents of the <strong>“index.html”</strong> file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*3MiTY7eekYL_7MLhKysRMA.png" /></figure><p>Confirmation that we’re receiving the file when we Curl from the <strong>“debian-container”.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*kZBKwRG5Lrpv8gJLw60cQA.png" /></figure><p>This is possible because containers in the same pod are in the same network namespace — they share networking resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*cqa3WPpUWcaMi1fDh_WJeA.png" /></figure><p>Network namespace is a collection of network interfaces (connections between two pieces of equipment on a network) and routing tables (instructions for where to send network packets). Namespaces are helpful because you can have many network namespaces on the same virtual machine without collisions or interference. (You wouldn’t want all your pods to run containers that listen on port 80 in the same namespace — they’d all collide!)</p><p>There’s a secret container that runs on every pod in Kubernetes. This container’s #1 job is to keep the namespace open in case all the other containers on the pod die. It’s called the <strong>pause</strong> container.</p><p>So, each pod gets its own network namespace. Containers in the same pod are in the same network namespace. This is why it can talk between containers via localhost and that&#39;s why you need to watch out for port conflicts when you’ve got multiple containers in the same pod.</p><h4>Related resources:</h4><ul><li><a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-volume-storage/">https://kubernetes.io/docs/tasks/configure-pod-container/configure-volume-storage</a>/</li><li><a href="https://kubernetes.io/docs/tasks/access-application-cluster/communicate-containers-same-pod-shared-volume/">https://kubernetes.io/docs/tasks/access-application-cluster/communicate-containers-same-pod-shared-volume/</a></li></ul><p><strong>Next Topic: </strong>Communication between pods on the same node and Communication between pods on different nodes — Part II(Coming Soon)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c95bf04e9894" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[KubeSpray : On Premise Kubernetes(HA Prod Env) Installation Step by Step Guide]]></title>
            <link>https://medium.com/@sensri108/kubespray-on-premise-kubernetes-ha-prod-env-installation-step-by-step-guide-2e14536653ca?source=rss-35ca85664e8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e14536653ca</guid>
            <dc:creator><![CDATA[Sen Sri]]></dc:creator>
            <pubDate>Mon, 20 Apr 2020 03:10:23 GMT</pubDate>
            <atom:updated>2020-04-20T03:41:49.161Z</atom:updated>
            <content:encoded><![CDATA[<h3>KubeSpray : On Premise Kubernetes(HA Prod Env) Installation Step by Step Guide</h3><p>There are several tools out there to set up a Kubernetes Cluster. The options are not limited, To mention few&gt; Rancher: provides a great web UI to manage several clusters from one location. KOPS, AKS, EKS, GKE, and IKS: dedicated to deploying a kubernetes cluster on various public cloud Kubernetes offerings.</p><p><strong>Kubespray </strong>is based on the Ansible playbook and <strong>uses</strong> kubeadm behind the scenes. Kubespray gives a simple and easy way to install a multi-master, production-ready HA cluster for deploying any business-critical applications to deploy it in On-Premise cluster env.</p><h4><strong>Prerequisites:</strong></h4><p><strong>Step 0: Provisioning Infrastructure:</strong></p><p>Refer below requirements and create the number of servers based on your requirements. Below example, I have created a 3-master and 3-worker node cluster.</p><p><a href="https://github.com/kubernetes-sigs/kubespray#requirements">https://github.com/kubernetes-sigs/kubespray#requirements</a></p><p><strong>Step 1. Disable SELinux:</strong></p><p>on all the server(nodes)</p><pre>~]# setenforce 0</pre><pre>~]# sed -i --follow-symlinks &#39;s/SELINUX=enforcing/SELINUX=disabled/g&#39; /etc/sysconfig/selinux</pre><p><strong>Step 2. Set the firewall rules:</strong></p><p><strong><em>on all “master” Servers:</em></strong></p><pre>~]# firewall-cmd --permanent --add-port=6443/tcp</pre><pre>~]# firewall-cmd --permanent --add-port=2379-2380/tcp</pre><pre>~]# firewall-cmd --permanent --add-port=10250/tcp</pre><pre>~]# firewall-cmd --permanent --add-port=10251/tcp</pre><pre>~]# firewall-cmd --permanent --add-port=10252/tcp</pre><pre>~]# firewall-cmd --permanent --add-port=10255/tcp</pre><pre>~]# firewall-cmd --reload</pre><pre>~]# modprobe br_netfilter</pre><pre>~]# echo &#39;1&#39; &gt; /proc/sys/net/bridge/bridge-nf-call-iptables</pre><pre>~]# sysctl -w net.ipv4.ip_forward=1</pre><p><strong>On all “node” servers:</strong></p><pre>~]# firewall-cmd --permanent --add-port=10250/tcp</pre><pre>~]# firewall-cmd --permanent --add-port=10255/tcp</pre><pre>~]# firewall-cmd --permanent --add-port=30000-32767/tcp</pre><pre>~]# firewall-cmd --permanent --add-port=6783/tcp</pre><pre>~]# firewall-cmd  --reload</pre><pre>~]# echo &#39;1&#39; &gt; /proc/sys/net/bridge/bridge-nf-call-iptables</pre><pre>~]# sysctl -w net.ipv4.ip_forward=1</pre><p><strong>NOTE</strong>: If possible, you can stop firewall service on all servers in the cluster:</p><pre>~]# systemctl stop firewalld</pre><p><strong>Step 3. Install some prerequisites(Ansible, Jinja &amp; Python) packages on all servers in the cluster:</strong></p><pre>~]# sudo yum install epel-release</pre><pre>~]# sudo yum install ansible<strong>:</strong></pre><pre>~]# easy_install pip</pre><pre>~]# pip2 install jinja2 --upgrade</pre><pre>~]# sudo yum install python36 –y</pre><p><strong>Step 4. Enable passwordless login between all servers </strong><a href="https://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/"><strong>in the cluster</strong></a><strong>:</strong></p><p><em>Generate ssh key on host machine and transfer the keys to master and nodes to establish password-less authentication.</em></p><pre>~]# <em>ssh-keygen</em></pre><p>Transfer the keys to all master and nodes. <em>Command :</em></p><pre>~]# <em>ssh-copy-id root@&lt;ip-address&gt;</em></pre><p><strong>Note</strong> : In case you do not know the password, just copy and paste the keys.</p><p><em>So at this stage, all the preparation work is completed. Now let’s start with Kubespray activities.</em></p><p><em>In the example below, we will be installing a 6 server cluster (3 as Master &amp; all 6 as nodes)</em></p><p><strong>Step 5. Git clone the Kubespray repository on one of the master servers:</strong></p><p>~]# git clone <a href="https://github.com/kubernetes-incubator/kubespray.git">https://github.com/kubernetes-incubator/kubespray.git</a></p><p><strong>Step 6. Go to the ‘Kubespray’ directory and install all dependency packages:</strong></p><p>(Install dependencies from requirements.txt)</p><pre>~]# cd kubespray</pre><pre>~]# sudo pip install -r requirements.txt</pre><p><strong>Step 7. Copy inventory/sample as inventory/mycluster (change “mycluster” to any name you want for the cluster)</strong></p><p><em>mkdir inventory/mycluster; cp -rfp inventory/sample/* inventory/mycluster</em></p><p><strong>Step 8. Update the Ansible inventory file with inventory builder:</strong></p><pre>~]# declare -a IPS=( 172.16.2.2 172.16.2.3 172.16.2.4 172.16.2.5 172.16.2.6 172.16.2.7 )</pre><pre>~]# CONFIG_FILE=inventory/mycluster/hosts.ini python3 contrib/inventory_builder/inventory.py ${IPS[@]}</pre><p><strong>Step 9: Review and change parameters under :</strong></p><p>``inventory/mycluster/group_vars``</p><p><em>inventory/mycluster/group_vars/all/all.yml</em></p><p><em>inventory/mycluster/group_vars/k8s-cluster/k8s-cluster.yml</em></p><p>Some changes you may want to look for are:</p><ul><li>Changing the network as per your liking in <em>“inventory/mycluster/group_vars/k8s-cluster/k8s-cluster.yml”.</em></li></ul><pre># Choose network plugin (cilium, calico, contiv, weave or flannel)</pre><pre># Can also be set to &#39;cloud&#39;, which lets the cloud provider setup appropriate routing</pre><pre>kube_network_plugin: weave</pre><ul><li>In <em>“inventory/mycluster/group_vars/all/all.yml” </em>uncomment the following line to enable metrics to fetch the cluster resource utilization data <strong>without this HPAs will not work</strong> (for ‘kubectl top nodes’ &amp; ‘kubectl top pods’ commands to work)</li></ul><pre># The read-only port for the Kubelet to serve on with no authentication/authorization. Uncomment to enable.</pre><pre>kube_read_only_port: 10255</pre><p>Now we are all set to bring up the cluster<strong><em>:</em></strong></p><p><strong>Step 10. Deploy Kubespray with Ansible Playbook</strong></p><pre>~]# ansible-playbook -i inventory/mycluster/hosts.ini cluster.yml</pre><p>Note: If you face the issue running above command with unsupported error, rename the inventory/mycluster/hosts.ini to inventory/mycluster/hosts.yml. and run it as:</p><pre>~]# ansible-playbook -i inventory/mycluster/hosts.yml cluster.yml</pre><p>Once this step is completed, the multi-master Kubernetes cluster should be ready for deploying your application.</p><p>- Check the status of the cluster now, and all nodes should be in ‘Ready’ status:</p><pre>~]# kubectl get nodes</pre><pre>NAME      STATUS    ROLES         AGE       VERSION</pre><pre>node1     Ready     master,node   4m        v1.10.3</pre><pre>node2     Ready     master,node   4m        v1.10.3</pre><pre>node3     Ready     master,node   4m        v1.10.3</pre><pre>node4     Ready     node          4m        v1.10.3</pre><pre>node5     Ready     node          4m        v1.10.3<br>node6     Ready     node          4m        v1.10.3</pre><p>===================================================================</p><p><strong>Additional steps might be needed while working with kubernetes cluster:</strong></p><p><strong>Step 11. Adding a new node (node6–172.16.2.7) to a cluster: If you wish to add a new node server into the cluster, perform the following steps:</strong></p><p>- Add the server <em>node-7</em> to “inventory/mycluster/hosts.yml” file</p><pre>[all]</pre><pre>node1    ansible_host=172.16.2.2 ip=172.16.2.2</pre><pre>node2    ansible_host=172.16.2.3 ip=172.16.2.3</pre><pre>node3    ansible_host=172.16.2.4 ip=172.16.2.4</pre><pre>node4    ansible_host=172.16.2.5 ip=172.16.2.5</pre><pre>node5    ansible_host=172.16.2.6 ip=172.16.2.6</pre><pre>node6    ansible_host=172.16.2.7 ip=172.16.2.7</pre><pre>node7    ansible_host=172.16.2.7 ip=172.16.2.8</pre><p>In “[kube-node]” section: (It can be kept along with other 6 nodes or as a single line also, won’t matter)</p><pre>[kube-node]</pre><pre>node1</pre><pre>node2</pre><pre>node3</pre><pre>node4</pre><pre>node5</pre><pre>node6<br>node7</pre><p>OR</p><pre>[kube-node]</pre><pre>node7</pre><p>Now run the following command to scale your cluster:</p><pre>~]# ansible-playbook -i inventory/mycluster/hosts.yml scale.yml</pre><p><strong>Step 12. Removing a new node (node7 –172.16.2.8) from the cluster:</strong></p><p>- Keep the server to “inventory/mycluster/hosts.yml” file</p><p>In “[all]” section:</p><pre>[all]</pre><pre>node1    ansible_host=172.16.2.2 ip=172.16.2.2</pre><pre>node2    ansible_host=172.16.2.3 ip=172.16.2.3</pre><pre>node3    ansible_host=172.16.2.4 ip=172.16.2.4</pre><pre>node4    ansible_host=172.16.2.5 ip=172.16.2.5</pre><pre>node5    ansible_host=172.16.2.6 ip=172.16.2.6</pre><pre>node6    ansible_host=172.16.2.7 ip=172.16.2.7<br>node7    ansible_host=172.16.2.7 ip=172.16.2.8</pre><p>In the “[kube-node]” section, keep <strong>ONLY</strong> the node server, which needs to be removed from the cluster. So in this example, we will keep only “node6” mentioned. (If any other nodes are kept in here, they will also be removed from the cluster)</p><pre>[kube-node]</pre><pre>node7</pre><p>Now run the following command to scale your cluster:</p><pre>~]# ansible-playbook -i inventory/mycluster/hosts.yml remove-node.yml</pre><p><strong>Step 13. Reset the entire cluster for fresh installation:</strong></p><p>Keep the “hosts.yml” updated correctly with all servers mentioned in the correct sections, and run the following command:</p><pre>~]# ansible-playbook -i inventory/mycluster/hosts.ini reset.yml</pre><p><strong>Step 14. Upgrade the kubernetes version to v1.17.3 which ever version you want to:</strong></p><pre>~]# ansible-playbook -i inventory/mycluster/hosts.ini -b upgrade-cluster.yml -e kube_version=v1.17.3 -u root</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e14536653ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is the best of Wiki or Confluence or SharePoint for your team, intranet, and why?]]></title>
            <link>https://medium.com/@sensri108/what-is-the-best-of-wiki-or-confluence-or-sharepoint-for-your-team-intranet-and-why-98d5f7e5bf21?source=rss-35ca85664e8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/98d5f7e5bf21</guid>
            <dc:creator><![CDATA[Sen Sri]]></dc:creator>
            <pubDate>Mon, 13 Apr 2020 01:58:01 GMT</pubDate>
            <atom:updated>2020-04-13T02:20:42.807Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Wikis</strong> can be good for quick and easy sharing of content. It is generally easy to update. Most of the time, I think it is used as a collaborative space for content, meaning that many people have contributed rights. I’ve seen wikis used to document the work and instructions for interns and for documenting operating procedures (non-regulated environment). Wiki is much better, as you can easily interlink documents, and even if for the sole reason that developers tend to LIKE the wiki markup! It makes it feel like they are writing code, not a document. Well, ok, I like it. Word documents? Endless frustration, especially for code snippets and things like API. Wikis usually handle code and structured formatting well.</p><p><strong>Confluence</strong> is an excellent tool for reading and editing content directly on the page and is very intuitive for less technical users. If you are using Jira for managing workload, then Confluence makes a fantastic integrated documentation tool. One of the important distinctions is the approach to client access licensing. Atlassian products such as Confluence require sufficient free concurrent user licenses to be available for your user base, otherwise, some people are effectively denied the service just because of the lack of free client access licenses. SharePoint is flexible and technically allows any number of users to interact with it</p><p><strong>SharePoint</strong>, as a broader tool, offers many ways to share information within the same collection of sites. It has extended content management and collaboration capabilities, search, workflows, advanced permission management, etc. It also has a Wiki component (site template) indeed, but this is just the tip of the iceberg. Many of my clients use that for knowledge sharing, how-to’s, etc.</p><p><strong>Conclusion</strong>:</p><p>I think what’s more important to understand is your content and target audiences. This means contemplating your information architecture (how we are organizing content, navigation, depth of the site, etc.), content management (what kinds of content will be shared and when, who’s allowed to administer/contribute/read the site and its components, document retention policies, etc.) in the context of our company/industry/geopolitical/financial/regulatory/technology/etc situation. And these things should be considered from the perspective of Now and The Future (e.g., Do you need scalability? Can you rollout in phases/modules?) Once you understand your needs/constraints, it becomes easier to figure out what are your options and, of those options, what makes the most sense.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98d5f7e5bf21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gist about Microservices(Container)]]></title>
            <link>https://medium.com/@sensri108/gist-about-microservices-container-136b362452a0?source=rss-35ca85664e8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/136b362452a0</guid>
            <category><![CDATA[container-orchestration]]></category>
            <category><![CDATA[cloud-services]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[containers]]></category>
            <dc:creator><![CDATA[Sen Sri]]></dc:creator>
            <pubDate>Tue, 03 Mar 2020 20:25:46 GMT</pubDate>
            <atom:updated>2020-03-03T20:46:17.770Z</atom:updated>
            <content:encoded><![CDATA[<h3>What are microservices?</h3><p>The central idea behind microservices is that some types of applications become easier to build and maintain when they are broken down into smaller, composable pieces that work together. Each component is continuously developed and separately maintained, and the application is then simply the sum of its constituent components. This is in contrast to a traditional, “monolithic” application which is all developed all in one piece. Architecting an application uses an API to expose discrete functions of the application; these functions are known as <em>microservices</em>. While microservices applications frequently use with containers, a microservices application does not have to be based on container technology. In many ways, the microservice approach is more of a mentality than a specific technology decision.</p><p><strong>There are other benefits:</strong></p><ul><li><strong>Developer independence</strong>: Small teams work in parallel and can iterate faster than large teams.</li><li><strong>Isolation and resilience</strong>: If a component dies, you spin up another while and the rest of the application continues to function.</li><li><strong>Scalability</strong>: Smaller components take up fewer resources and can be scaled to meet the increasing demand for that component only.</li><li><strong>Lifecycle automation</strong>: Individual components are easier to fit into continuous delivery pipelines and complex deployment scenarios not possible with monoliths.</li><li><strong>Relationship to the business</strong>: Microservice architectures are split along business domain boundaries, increasing independence, and understanding across the organization.</li></ul><h3>What is a Container?</h3><p>There is some confusion about containers being something like virtualization. Although this generalization is reasonable at a high level, there are a few important characteristics that separate containers from virtualization. Docker has popularized containers by making them really easy to use.</p><ul><li>Containers may run on a bare-metal system or in a virtualized OS.</li><li>Containers (at least the Docker model) are “immutable,” meaning that they cannot be changed. In fact, they are versioned, similar to source control.</li><li>An application in a container typically runs as root. However, it does not have unrestricted access to the entire system on which it runs.</li></ul><p>A container allows the developer to package and run his or her own “user-space” within an OS, separate from the rest of the system. Your code, library dependencies, runtime, frameworks, and more are versioned into the container and then run wherever you specify.</p><p>Unlike virtualization, however, there is still only one actual operating system and kernel beneath the container. The kernel is responsible for creating all of the separate container runtime environments on top of the host kernel and OS.</p><p>Containers are very similar to the old UNIX/Linux concept of a “chroot jail”, with two notable improvements:</p><ul><li>Containers provide kernel capabilities to enforce the separation of processes/file/network access. Linus refers to this feature as CGroups.</li><li>Docker provides a standard for creating, packaging and redistributing the contents of the “chroot jail” as an image that is easy to distribute across your infrastructure or with other people. Thus, the use of Docker makes it very simple to ensure that all instances of your application are running in the same way with the same setup and code.</li></ul><h3>Managing Containers:</h3><p>Once you’ve decided that you want to at least experiment with a microservices architecture, you will quickly find a vast array of platforms on which you can deploy your containers in the public and private cloud world.</p><p>If you are considering a private cloud model, you will probably come across some container platforms: Kubernetes, Docker Swarm, Mesos, and Marathon being the most common. Companies also offer hosted versions of the same stacks (such as Kubernetes with Google’s <em>Google Container Engine</em> or GKE).</p><p>Each of these technologies provides an automated way to manage running your containers and services. They include APIs and user tools that allow you (or your CI/CD automation) to deploy your containers automatically across a pool of compute resources and subsequently to perform common lifecycle tasks against the deployment; for example:</p><ul><li>Blue/Green Upgrades (Zero downtime upgrades of a microservices application).</li><li>Access to application and service logs without requiring developers to log onto production machines. (Self serve application logs).</li><li>Scaling and Load balancing multiple instances of an application to handle increased service load and resilience.</li></ul><p>These so-called “container stacks” enable you to take an application that’s been packaged as a container and launch it into a cluster (such as Kubernetes), which will take care of the scaling, service health and service resilience (restarting failed services).</p><h3>Conclusion:</h3><p>We’ve only scratched the surface of the new era of cloud-native application development, you should now have a better understanding of cloud application architecture, and an awareness of some of the considerations to keep in mind when exploring the world of microservices and containers.</p><h3>Where can I learn more?</h3><p>Opensource.com has a number of resources for those who are interested in learning more about different tools and design patterns that might be a part of a micro services-oriented application. Here are a few we recommend you check out:</p><ul><li><a href="https://opensource.com/resources/what-are-microservices">https://opensource.com/resources/what-are-microservices</a></li><li><a href="https://opensource.com/business/14/12/containers-microservices-and-orchestrating-whole-symphony">Containers, microservices, and orchestrating the whole symphony</a> by Uri Cohen</li><li><a href="https://opensource.com/bus/15/3/google-grpc-open-source-remote-procedure-calls">Google shares gRPC as alternative to REST for microservices</a> by Luis Ibáñez</li><li><a href="https://opensource.com/business/15/2/interview-sarah-novotny-nginx">NGINX: The secret heart of the modern web</a> by Jason Hibbets</li><li><a href="https://opensource.com/business/15/5/api-integrations-with-python-and-zato">Smart API integrations with Python and Zato</a> by Dariusz Suchojad</li><li><a href="https://opensource.com/business/14/7/interview-jerome-petazzoni-docker">Senior software engineer Petazzoni on the breathtaking growth of Docker</a> by Richard Morrell</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=136b362452a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Practice Examples,  Dumps & Tips for CKA & CKAD (Certified Kubernetes Administrator) Exam by CNCF]]></title>
            <link>https://medium.com/@sensri108/practice-examples-dumps-tips-for-cka-ckad-certified-kubernetes-administrator-exam-by-cncf-4826233ccc27?source=rss-35ca85664e8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4826233ccc27</guid>
            <category><![CDATA[k8s]]></category>
            <category><![CDATA[cka]]></category>
            <category><![CDATA[ckad]]></category>
            <category><![CDATA[container-orchestration]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Sen Sri]]></dc:creator>
            <pubDate>Mon, 23 Dec 2019 23:51:57 GMT</pubDate>
            <atom:updated>2021-02-05T02:22:08.416Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>CNCF </strong>Certified Kubernetes Administrator or Developer CKA(D) Exam Practice Examples, Dumps &amp; Tips<strong>.</strong></h3><h3>Practice makes a Man Perfect — So practice, practice, and practice before the CKA &amp; CKAD exam and score 100%.</h3><p>To start with understand the concepts and practice all exam <a href="https://github.com/cncf/curriculum">topics</a> thoroughly as per the below example questions. The exam is intense though as it requires 3 hours of concentrated effort during which you need to solve 24 problems but as long as you enjoy solving problems, it feels very rewarding. it&#39;s <strong><em>not</em></strong> very difficult to clear the exam (as some articles on the internet claim it to be) provided you. So, if you are interested to take this exam and have a second thought about it, my sincere advice is, <strong><em>just do it! You will clear it!!</em></strong></p><p><strong>Practice these Examples questions:</strong></p><ul><li><a href="https://github.com/dgkanatsios/CKAD-exercises">GitHub - dgkanatsios/CKAD-exercises: A set of exercises to prepare for Certified Kubernetes Application Developer exam by Cloud Native Computing Foundation</a></li><li><a href="https://medium.com/bb-tutorials-and-thoughts/practice-enough-with-these-questions-for-the-ckad-exam-2f42d1228552">Practice Enough With These 150 Questions for the CKAD Exam</a></li><li><a href="https://www.udemy.com/course/certified-kubernetes-administrator-with-practice-tests/">Certified Kubernetes Administrator (CKA) Practice Exam Tests</a></li><li><a href="https://github.com/walidshaari/Kubernetes-Certified-Administrator">GitHub - walidshaari/Kubernetes-Certified-Administrator: Online resources that will help you prepare for taking the CNCF CKA 2020 &quot;Kubernetes Certified Administrator&quot; Certification exam. with time, This is not likely the comprehensive up to date list - please make a pull request if there something that should be added here.</a></li></ul><p><strong>My Exam Practice Question Dumps:</strong></p><ul><li>CNCF Kubernetes Class + labs</li><li>K8S The Hard Way run through</li><li>Run through all the tasks in the k8s docs</li><li>Practice with systemd, journald, openssl, cfssl, and etcd</li><li>Work through the sections in the above GitHub list</li></ul><p><strong>Note</strong> — there are no answers here on purpose. You should be able to do these yourself using the minimal docs that you are allowed to use during the test. At a minimum, this should train you on where to look for this info during the test, without notes</p><p><strong>Practice Example</strong> <strong>Question Dump -1:</strong></p><p>— Each of you creates the below in your namespace.</p><p>— For each of the questions above, always keep a label “ques=prob&lt;x&gt;” assigned.</p><p>Keep the specification copied into directory /opt/&lt;yourname&gt;/spec.prob&lt;x&gt;</p><p>— — — — —</p><p>1. Create a pod named “web” using image nginx:1.11.9-alpine, on ports 80 and 443</p><p>2. Create a service to expose that pod, named as “webservice”</p><p>3. Copy the dns records for the service in file /opt/&lt;yournamespace&gt;/web.dnsrecord</p><p>4. Create a deployment with “redis” image on port 6379 and expose a service.</p><p>5. Increase the number of replicas to 3</p><p>6. Perform a rolling update to version 4.0.11-alpine.</p><p>7. Copy pod spec to file /opt/yournamespace/podversion.</p><p>8. Undo the image update to redis.. and confirm pod spec image matches</p><p>9. Create a multi-container pod, with redis, memcached, nginx and mysql,</p><p>assign resource memory limit as 250M for each container.</p><p>10. List all the pods in your namespace sorted by name.</p><p>11. Mount a temporary volume within a busybox pod named “shell”</p><p>at directory “/export/volume” copy the pod spec into /opt/yourname/shellvolume</p><p>12. To the earlier pod “shell” attach liveliness probe to check the file</p><p>/export/volume/app.log being available.</p><p>13. Setup init container into shell pod that got created just now, to</p><p>create a file /export/volume/app.log empty file before the busybox container</p><p>is run.</p><p>14. Create a secret “&lt;yourname&gt;-secret” with user=&lt;yourname&gt;, secret=”SOMESECRET”</p><p>edit the “shell” pod to have the above secret imported as a volume</p><p>at /opt/mysecretvolume, and MYSECRET environment defined to map to</p><p>key secret in “&lt;yourname&gt;-secret”</p><p>15. Create a persistent Volume named “&lt;yourname&gt;”</p><p>specification that defines a volume for 10Gi mapping to hostpath /opt/&lt;yourname&gt;</p><p>16. Take the etcd database snapshot saved into file /opt/&lt;yourname&gt;/etcdsnapshot</p><p>the certificates and keys are available in /opt/certs directory.</p><p>17. Get the dns records for the service and pods for the deployment “redis”</p><p>copied to file /opt/&lt;yourname&gt;/dnsrecord.redis</p><p>18. List all the pods that are serviced by the service “webservice”and copy the output in /opt/&lt;yourname&gt;/webservice.targets</p><p>############################################</p><p><strong>Practice Example</strong> <strong>Question Dump -2:</strong></p><p>— create a namespace &lt;name&gt;0830 and perform the following tasks.</p><p>— for each task create a spec file and save it in the homedirectory/namespace</p><p>as spec.p&lt;num&gt;</p><p>— — — — —</p><p>1. Create a pod redis version 5.0-rc4-alpine named “mycache”</p><p>2. Upgrade the pod to use 5.0-rc-alpine and save the pod spec as p2</p><p>along with the command used.</p><p>3. Create a config map from file /var/lib/kubelet/config.yaml</p><p>and create a nginx pod that sees the configmap as a volume in the same path within the container,</p><p>assign port 80 and expose it as a service “webservice” as well. The pod should be named “web”</p><p>4. Create a busybox container that sleeps 60000, named “mybox”.</p><p>5. Attach liveness probe to the container and restart if environment USER is null or undefined.</p><p>Report pod status after attaching liveness probe.</p><p>6. Pass ENV variables “USER” and “SECRET”</p><p>from a secret “boxsecret” defined already that has these initialized as “bob”/”somesupersecret”</p><p>7. Attach resource requests and limits for cpu and memory at 10m/10m and 100m/1000M</p><p>for “mybox” pod above.</p><p>8. Create a pv named “yourname-volume” that maps to hostpath “/opt/volume/yourname/” as 100G capacity, and</p><p>policy reclaim.</p><p>9. Create a deployment “myvolume” for memcached that get a 1G volume mapped from</p><p>yourname-volume at /opt/myvolume</p><p>10. Scale the deployment to have 2 replicas.</p><p>11. Update myvolume deployment to have 1.5.10-alpine image on all replicas.</p><p>12. Setup a init container in myvolume deployment to init a file in the mapped volume</p><p>/opt/myvolume/config.yaml before the real memcached kick starts.</p><p>13. Monitor pod lifecycle and log messages when pod/container starts/stops.</p><p>14. Create a multi-container pod with nginx, memcached, redis all sharing the</p><p>volume mount at /opt/myvolume with a 1G claim from your earlier pv created.</p><p>15. List all objects in your namespace that has label “ques=p5”</p><p>Find all pods that are serviced by your webservice.</p><p>############################################</p><p><strong>Additional Practice Example</strong> <strong>Question Dump -3:</strong></p><ol><li>Create a node that has a SSD and label it as such.</li><li>Create a pod that is only scheduled on SSD nodes.</li><li>Create 2 pod definitions: the second pod should be scheduled to run anywhere the first pod is running — 2nd pod runs alongside the first pod.</li><li>Create a deployment running nginx version 1.12.2 that will run in 2 pods<br> a. Scale this to 4 pods.<br> b. Scale it back to 2 pods.<br> c. Upgrade this to 1.13.8<br> d. Check the status of the upgrade<br> e. How do you do this in a way that you can see history of what happened?<br> f. Undo the upgrade</li><li>Create a service that uses a scratch disk.<br> a. Change the service to mount a disk from the host.<br> b. Change the service to mount a persistent volume.</li><li>Create a pod that has a liveness check</li><li>Create a service that manually requires endpoint creation — and create that too</li><li>Create a daemon set<br> a. Change the update strategy to do a rolling update but delaying 30 seconds between pod updates</li><li>Create a static pod</li><li>Create a busybox container without a manifest. Then edit the manifest.</li><li>Create a pod that uses secrets<br> a. Pull secrets from environment variables<br> b. Pull secrets from a volume<br> c. Dump the secrets out via kubectl to show it worked</li><li>Create a job that runs every 3 minutes and prints out the current time.</li><li>Create a job that runs 20 times, 5 containers at a time, and prints “Hello parallel world”</li><li>Create a service that uses an external load balancer and points to a 3 pod cluster running nginx.</li><li>Create a horizontal autoscaling group that starts with 2 pods and scales when CPU usage is over 50%.</li><li>Create a custom resource definition<br> a. Display it in the API with curl</li><li>Create a networking policy such that only pods with the label access=granted can talk to it.<br> a. Create an nginx pod and attach this policy to it. <br> b. Create a busybox pod and attempt to talk to nginx — should be blocked<br> c. Attach the label to busybox and try again — should be allowed</li><li>Create a service that references an externalname.<br> a. Test that this works from another pod</li><li>Create a pod that runs all processes as user 1000.</li><li>Create a namespace<br> a. Run a pod in the new namespace<br> b. Put memory limits on the namespace<br> c. Limit pods to 2 persistent volumes in this namespace</li><li>Write an ingress rule that redirects calls to /foo to one service and to /bar to another</li><li>Write a service that exposes nginx on a nodeport<br> a. Change it to use a cluster port<br> b. Scale the service<br> c. Change it to use an external IP<br> d. Change it to use a load balancer</li><li>Deploy nginx with 3 replicas and then expose a port<br> a. Use port forwarding to talk to a specific port</li><li>Make an API call using CURL and proper certs</li><li>Upgrade a cluster with kubeadm</li><li>Get logs for a pod</li><li>Deploy a pod with the wrong image name (like — image=nginy) and find the error message.</li><li>Get logs for kubectl</li><li>Get logs for the scheduler</li><li>Restart kubelet</li><li>Convert a CRT to a PEM<br> a. Convert it back</li><li>Backup an etcd cluster</li><li>List the members of an etcd cluster</li><li>Find the health of etcd</li></ol><p>############################################</p><p><strong>Tips:</strong></p><ul><li><a href="https://medium.com/@pmvk/tips-to-crack-certified-kubernetes-administrator-cka-exam-c949c7a9bea1">Tips to crack Certified Kubernetes Administrator (CKA) Exam</a></li><li><a href="https://medium.com/platformer-blog/how-i-passed-the-cka-certified-kubernetes-administrator-exam-8943aa24d71d">How I passed the CKA (Certified Kubernetes Administrator) Exam</a></li></ul><p>You will not hit the time limit only if you keep practicing… this certification is about the practice and hands-on…. no other way out…Again practice, practice, and practice before the CKA &amp; CKAD exam and score 100%</p><p>The kind of questions you are likely to get will be similar to the above ones. and you have 2 attempts to clear it…Clap and show your support.. Best of Luck.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4826233ccc27" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>