zwischenstand

This commit is contained in:
nutzer26
2022-12-14 14:37:30 +01:00
parent bed22c6720
commit 441f2b2999
11 changed files with 158 additions and 2 deletions

16
k8s/pods Normal file
View File

@@ -0,0 +1,16 @@
kubectl create namespace whoami
kubectl config view
kubectl config set-context --current --namespace whoami
# create pod and service
kubectl run whoami --image bee42/whoami:2.2.0 --expose --port 80
kubectl get pods
kubectl get pods -o yaml
# see we created also a service!
kubectl get svc
kubectl run whoami --image bee42/whoami:2.2.0 --expose --port 80
kubectl get pod whoami -o yaml
# kann zur erstellung der YAML genutzt werden.
kubectl run whoami2 --image bee42/whoami:2.2.0 --labels=run=whoami --dry-run=client -o yaml >whoami-pod.yaml