65 lines
2.8 KiB
Plaintext
65 lines
2.8 KiB
Plaintext
grape@lonetrek:~/Documents/devops/devops/kubernetes/2$ kubectl apply -f 1.yaml
|
|
pod/nginx-guaranteed created
|
|
grape@lonetrek:~/Documents/devops/devops/kubernetes/2$ kubectl get pod nginx-guaranteed -o wide
|
|
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
|
|
nginx-guaranteed 1/1 Running 0 2m4s 10.244.5.177 k8s-worker2 <none> <none>
|
|
grape@lonetrek:~/Documents/devops/devops/kubernetes/2$ kubectl describe pod nginx-guaranteed
|
|
Name: nginx-guaranteed
|
|
Namespace: default
|
|
Priority: 0
|
|
Service Account: default
|
|
Node: k8s-worker2/192.168.88.229
|
|
Start Time: Fri, 17 Oct 2025 13:04:17 +0300
|
|
Labels: app=nginx
|
|
Annotations: <none>
|
|
Status: Running
|
|
IP: 10.244.5.177
|
|
IPs:
|
|
IP: 10.244.5.177
|
|
Containers:
|
|
nginx:
|
|
Container ID: cri-o://91d47234f22e127819396fe15654f9adafbc61fcd9fbb566f75427b6bd3d0c6e
|
|
Image: nginx:latest
|
|
Image ID: docker.io/library/nginx@sha256:35fabd32a7582bed5da0a40f41fd4984df7ddff32f81cd6be4614d07240ec115
|
|
Port: <none>
|
|
Host Port: <none>
|
|
State: Running
|
|
Started: Fri, 17 Oct 2025 13:04:23 +0300
|
|
Ready: True
|
|
Restart Count: 0
|
|
Limits:
|
|
cpu: 500m
|
|
memory: 500Mi
|
|
Requests:
|
|
cpu: 500m
|
|
memory: 500Mi
|
|
Environment: <none>
|
|
Mounts:
|
|
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-fshmj (ro)
|
|
Conditions:
|
|
Type Status
|
|
PodReadyToStartContainers True
|
|
Initialized True
|
|
Ready True
|
|
ContainersReady True
|
|
PodScheduled True
|
|
Volumes:
|
|
kube-api-access-fshmj:
|
|
Type: Projected (a volume that contains injected data from multiple sources)
|
|
TokenExpirationSeconds: 3607
|
|
ConfigMapName: kube-root-ca.crt
|
|
Optional: false
|
|
DownwardAPI: true
|
|
QoS Class: Guaranteed
|
|
Node-Selectors: <none>
|
|
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
|
|
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
|
|
Events:
|
|
Type Reason Age From Message
|
|
---- ------ ---- ---- -------
|
|
Normal Scheduled 2m32s default-scheduler Successfully assigned default/nginx-guaranteed to k8s-worker2
|
|
Normal Pulling 2m31s kubelet Pulling image "nginx:latest"
|
|
Normal Pulled 2m27s kubelet Successfully pulled image "nginx:latest" in 4.263s (4.263s including waiting). Image size: 163615579 bytes.
|
|
Normal Created 2m26s kubelet Created container: nginx
|
|
Normal Started 2m26s kubelet Started container nginx
|