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 … Read more

What’s the difference between Docker Compose and Kubernetes?

Containers: Containers are at the core of the other technologies listed here Docker: Docker is a popular implementation of the technology that allows applications to be bundled into a container. docker is a command-line tool to manage images, containers, volumes, and networks Docker Compose Docker Compose is the declarative version of the docker cli It … Read more

What’s the difference between ClusterIP, NodePort and LoadBalancer service types in Kubernetes?

[*] A ClusterIP exposes the following: spec.clusterIp:spec.ports[*].port You can only access this service while inside the cluster. It is accessible from its spec.clusterIp port. If a spec.ports[*].targetPort is set it will route from the port to the targetPort. The CLUSTER-IP you get when calling kubectl get services is the IP assigned to this service within … Read more

How to use local docker images with Minikube?

As the handbook describes, you can reuse the Docker daemon from Minikube with eval $(minikube docker-env). So to use an image without uploading it, you can follow these steps: Set the environment variables with eval $(minikube docker-env) Build the image with the Docker daemon of Minikube (eg docker build -t my-image .) Set the image … Read more