kubectl apply vs kubectl create?

Those are two different approaches: Imperative Management kubectl create is what we call Imperative Management. On this approach you tell the Kubernetes API what you want to create, replace or delete, not how you want your K8s cluster world to look like. Declarative Management kubectl apply is part of the Declarative Management approach, where changes that you may have applied … Read more

kubectl get pods shows ErrImagePull

Reason This is because it can’t download the docker image defined in your pod definition file. By default it downloads required images from DockerHub. Way 1 So after creating your my-first-image:3.0.0 image you have to publish it at DockerHub. For that create an account at DockerHub and login from terminal using login command After successful login, rebuild your docker image … Read more

Failed to find a valid digest in the ‘integrity’ attribute for resource on a deployed emberjs application

Ember uses Subresource Integrity (SRI) by default to increase the security of applications built with the framework. The Mozilla Development Network has a good explanation of SRI: Subresource Integrity (SRI) is a security feature that enables browsers to verify that resources they fetch (for example, from a CDN) are delivered without unexpected manipulation. It works by allowing … Read more

Pod status as `CreateContainerConfigError` in Minikube cluster

I am trying to run Sonarqube service using the following helm chart. So the set-up is like it starts a MySQL and Sonarqube service in the minikube cluster and Sonarqube service talks to the MySQL service to dump the data. When I do helm install followed by kubectl get pods I see the MySQL pod status as running, but the Sonarqube pos status shows as CreateContainerConfigError. I reckon … Read more

pod has unbound PersistentVolumeClaims

You have to define a PersistentVolume providing disc space to be consumed by the PersistentVolumeClaim. When using storageClass Kubernetes is going to enable “Dynamic Volume Provisioning” which is not working with the local file system. To solve your issue: Provide a PersistentVolume fulfilling the constraints of the claim (a size >= 100Mi) Remove the storageClass from the PersistentVolumeClaim or provide it with an empty value (“”) Remove the StorageClass from … Read more

Restart container within pod

Is it possible to restart a single container Not through kubectl, although depending on the setup of your cluster you can “cheat” and docker kill the-sha-goes-here, which will cause kubelet to restart the “failed” container (assuming, of course, the restart policy for the Pod says that is what it should do) how do I restart … Read more