Problem scenario
You have heard “kube C.T.L.” and “kube-cut-el”. How should you pronouce kubectl?
Answer
We recommend “kube C.T.L.” Source: https://youglish.com/pronounce/kubectl/english?
…
A Technical I.T./DevOps Blog
Problem scenario
You have heard “kube C.T.L.” and “kube-cut-el”. How should you pronouce kubectl?
Answer
We recommend “kube C.T.L.” Source: https://youglish.com/pronounce/kubectl/english?
…
Problem scenario
You want to extend Kubernetes’ functionality. You want to use CustomResourceDefinitions. You can view API resources by running “kubectl api-resources”. You want to add to the list. How do you use a CRD?
Solution
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: contintexamples.continualintegration.com
spec:
group: continualintegration.com
names:
kind: ContintExample
plural: contintexamples
listKind: ContintExampleList
singular: contintexample
scope: Namespaced
versions:
– name: v1
# Each version can be enabled/disabled by Served flag. …
Continue reading “How Do You Use Custom Resource Definitions in Kubernetes?”
Problem scenario
You find out-of-memory (aka OOM) errors in Kubernetes. The node seems healthy. The pods keep restarting. What should you do?
Possible Solution #1
Are you using a burstable quality of service (aka QoS) with the pods? There may be a non-pod-specific reason and the burstable Pods are being starved of resources. The node may be getting requests for other pods with a superior quality of service.
…
Continue reading “How Do You Troubleshoot OOM Errors with Restarting Pods in Kubernetes?”
Question
In computing, what is the definition of a schema?
Answer / schema disambiguation
Outside of the I.T. realm, Merriam-Webster’s Dictionary (11th Edition, on page 1110) defines schema as “a diagrammatic presentation; broadly: a structured framework or plan: outline.” This definition must have influenced the appropriation of the word to refer to concepts in I.T..
For Kubernetes
“Schemas are the set of JSON files for various Kubernetes versions,
…
Problem scenario
You run “docker-compose build” and you get this:
1 error occurred:
* unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/jane/dockercompose/webapp/Dockerfile: no such file or directory
What should you do?
Solution
Look at your docker-compose.yml file. Look at the “build” stanza. What directory is it referring to? Is a Dockerfile file in that directory?
…
One of the following apply:
Problem scenario #1
You run this: “sudo systemctl start docker”
But you get this: “Failed to start docker.service: Unit docker.service not found.”
Problem scenario #2
You run this: “sudo systemctl start docker”
But you get this:
“docker.service: Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusing.”
or this:
“Failed to start docker.service: Unit docker.service not found.”
Problem scenario #3
You run this: sudo systemctl enable docker
But you get this: “Failed to enable unit: Unit file docker.service does not exist.”
Solution
Use this posting.
…
Continue reading “How Do You Create a docker.service File on a Linux Server?”
Problem scenario
You read that Kubernetes is ending support for Docker. What does this mean for Kubernetes users?
Solution
Probably nothing for most Kubernetes users. Kubernetes is going to support Open Container Initiative images.
Docker is more than a container runtime; its container runtime is containerd (according to twoardsdatascience.com). We expect containerd to be supported for a long time.
…
Problem scenario
You are running Kubernetes in Azure. You need to find the Ingress pod’s IP address. What should you do?
Solution
1. Go to portal.azure.com
2. Go to Kubernetes Service
3. Go to the AKS cluster (e.g., foobar)
4. Go to Services and Ingresses
5. Find the ingress service with the name you are looking for (e.g.,
…
Continue reading “How Do You Find the Ingress IP address for an AKS Cluster?”
Question
In the context of Kubernetes, what is a mutating webhook?
Answer
They are an API invocation that make changes to resources (and in some cases before they are created per medium.com).
“MutatingAdmissionWebhook is one of easiest ways of extending Kubernetes with new policy controls and resources mutation and a host of other options.” (Taken from medium.com )
“Mutating controllers may modify related objects to the requests they admit;
…
Problem scenario
You try to install docker-ce on a CentOS/Stream/RHEL/Fedora server, but you get an error like this:
Error:
Problem: problem with installed package podman-docker-1:3.4.1-3.module_el8.6.0+954+963caf36.noarch
…
package docker-ce conflicts with podmoan-docker
What should you do?
Solution
This will remove some packages. Do not do this if you have customized the packages involved.
Run these commands:
sudo yum remove buildah skopeo podman containers-common atomic-registries docker container-tools
sudo dnf -y install docker-ce …