This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some Jenkinsfile examples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.a- kubectl run | |
kubectl get pods | |
kubectl run first-deployment --image=nginx | |
kubectl get pods | |
(maybe one more time to show the state changed from container creation to Running) | |
(copy the pod name from get pods) | |
kubectl exec -it pod-name -- /bin/bash | |
echo Hello nginx! > /usr/share/nginx/html/index.html | |
apt-get update |
OlderNewer