💻 Tech
Three of the ways to create pod. The last two has -f -
which means the input is read from th standard input (stdin)
k run nginx --image=nginx
-
echo "apiVersion: v1 kind: Pod metadata: creationTimestamp: null labels: run: nginx name: nginx spec: containers: - image: nginx name: nginx " | k apply -f -
-
k apply -f - <<EOF echo "apiVersion: v1 kind: Pod metadata: creationTimestamp: null labels: run: nginx name: nginx spec: containers: - image: nginx name: nginx EOF