Create a deployment named httpd
.
Deploy the application httpd
.
Use the image httpd:latest
(make sure to specify the tag).
Make yaml file or you can try EOF. Personally I like using EOF. (Alternatively, you can try vim/ nano anything.
Now apply the yaml file
Apply the deployment with the following command:
To check if the deployment is created, run:
To make sure to specify the tag (latest)
As we already have deployment named httpd
.
#k8s #devops #deployments #happylearning