Good day,
Kindly need help with this issue I cannot find the solution even though I used this site https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
. I am creating a new deployment, but when I apply my yaml file the replicas Pods Status are waiting instead of available. How can I changeg them to running status. When I check rollout status the replicas are not being available.
kubectl get deployments
NAME READY UP-TO-DATE AVAILABLE AGE
ngnix-deployment 0/3 3 0 12m
kubectl get rs
NAME DESIRED CURRENT READY AGE
ngnix-deployment-dffcf985 3 3 0 12m
kubectl describe deployment ngnix-deployment
Name: ngnix-deployment
Namespace: default
CreationTimestamp: Thu, 02 Jul 2020 06:11:24 -0700
Labels: app=nginx
Annotations: deployment.kubernetes.io/revision: 1
Selector: app=ngnix
Replicas: 3 desired | 3 updated | 3 total | 0 available | 3 unavailable
StrategyType: RollingUpdate
MinReadySeconds: 0
RollingUpdateStrategy: 25% max unavailable, 25% max surge
Pod Template:
Labels: app=ngnix
Containers:
ngnix:
Image: ngnix:1.7.9
Port: 80/TCP
Host Port: 0/TCP
Environment: <none>
Mounts: <none>
Volumes: <none>
Conditions:
Type Status Reason
---- ------ ------
Available False MinimumReplicasUnavailable
Progressing False ProgressDeadlineExceeded
OldReplicaSets: <none>
NewReplicaSet: ngnix-deployment-dffcf985 (3/3 replicas created)
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal ScalingReplicaSet 11m deployment-controller Scaled up replica set ngnix-deployment-dffcf985 to 3
My deployment yaml file:
apiVersion: apps/v1 kind: Deployment metadata: name: ngnix-deployment labels: app: nginx spec: replicas: 3 selector: matchLabels: app: ngnix template: metadata: labels: app: ngnix spec: containers: - name: ngnix image: ngnix:1.7.9 ports: - containerPort: 80