Editing CKA: Create and configure basic Pods
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 5: | Line 5: | ||
* To create a pod in a [[namespace]]: | * To create a pod in a [[namespace]]: | ||
:<code>[[kubectl create]] namespace MY_TEST_NAMESPACE</code> | :<code>[[kubectl create]] namespace MY_TEST_NAMESPACE</code> | ||
− | :<code>[[kubectl | + | :<code>[[devOps/Kubernetes/kubectl|kubectl]] apply -f https://k8s.io/examples/pods/storage/redis.yaml --namespace=MY_TEST_NAMESPACE</code><ref>https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/</ref> |
:To verify container is running: | :To verify container is running: | ||
::<code>[[kubectl get pod]] NAME_POD --namespace=MY_TEST_NAMESPACE</code> | ::<code>[[kubectl get pod]] NAME_POD --namespace=MY_TEST_NAMESPACE</code> |
Advertising: