zwischenstand
This commit is contained in:
16
k8s/pods
Normal file
16
k8s/pods
Normal 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
|
||||
Reference in New Issue
Block a user