kubectl edit delpioy deploy-jenkins
kubectl scale deploy deploy-jenkins --replicas=5
kubectl get pods -w
kubectl get all
kubectl delete pod deploy-jenkins-cff9dd86c-km88m
kubectl describe rs deploy-jenkins-cff9dd86c
kubectl get pod --show-labels
kubectl label pod deploy-jenkins-cff9dd86c-8zj62 app-
kubectl get deploy
kubectl scale deploy deploy-jenkins --replicas=9
kubectl edit deploy deploy-jenkins
kubectl get pod -l app
kubectl get deploy
kubectl describe deploy http-go
kubectl get deploy http-go -o yaml
jenkins-deploy.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: deploy-jenkins
labels:
app: jenkins-test
spec:
replicas: 3
selector:
matchLabels:
app: jenkins-test
template:
metadata:
labels:
app: jenkins-test
spec:
containers:
- name: jenkins
image: jenkins
ports:
- containerPort: 8080