Pod
Last updated
Was this helpful?
Last updated
Was this helpful?
is an abstraction of a server
can run multiple container within single namespace, exposed by single IP
only started through Deployment
Init container is an additional container in POD that completes a task before the regular container is started.
kubectl create cronjob sleep-job --image=busybox --schedule"*/2 * * * *" --dry-run -o yaml > job.yaml
Namespace implements kernel level resource isolation. Kubernetes supports multiple virtual clusters backed by the same physical cluster. These virtual clusters are called namespaces. Read more about namespaces at Kubernetes reference
replicas - how many copies
strategy - how Pods should be updated
recreate - all pods killed and new created => temporary unavailability
rollingUpdate
selector - how labels are matched agains the Pod
template - Pod specification to create it
label -> key/value pair to identify K8s resource
annotation is used to provide additional metadata in object (licenses, maintainer...)
kubectl rollout history deployment [name] kubectl rollout undo deployment [name] --to-revision=1
Ambassador
Adapter
Sidecar container
Reloading ConfigMaps when there's a change.
Init container
kubectl label deployment [name] [key]=[value] kubectl get deployments.apps --show-labels kubectl get deployments.apps --selector [key]=[value]