Changes

Jump to navigation Jump to search
334 bytes added ,  09:40, 19 June 2021
add pod example
== pod ==
pods are more-or-less equivalent to containers
 
the simplest way to start a pod is to create a temporary file
 
<syntaxhighlight lang="yaml">
apiVersion: v1
kind: Pod
metadata:
name: shell-debug
spec:
containers:
- name: debian
image: debian
command: ['bash', '-c', 'sleep infinity']
</syntaxhighlight>
 
and apply it with
<code>kubectl apply -f file.yaml<code>
 
== deployment ==
A deployment creates a replica-set, that can consist out of several pods. Deployments can be used for stateless services, e.g. our website. Services that are not stateless can be deployed with [[#statefulset|statefulsets]]

Navigation menu