본문 바로가기

IT 기술/k8s59

[cka] OS Upgrades 1. Let us explore the environment first. How many nodes do you see in the cluster?Including the controlplane and worker nodes. controlplane ~ ➜ k get nodesNAME STATUS ROLES AGE VERSIONcontrolplane Ready control-plane 8m43s v1.30.0node01 Ready 7m55s v1.30.0 answer : 2 2. How many applications do you see hosted on the cluster?Check the num.. 2024. 7. 10.
[cka] Init Containers 1. Identify the pod that has an initContainer configured. controlplane ~ ➜ k describe pod...ame: blueNamespace: defaultPriority: 0Service Account: defaultNode: controlplane/192.30.130.9Start Time: Fri, 05 Jul 2024 14:53:30 +0000Labels: Annotations: Status: RunningIP: 10.42.0.11IPs: IP: 10.42.0.11Init Containe.. 2024. 7. 6.
[cka] Multi Container PODs 1. Identify the number of containers created in the red pod. controlplane ~ ➜ k get podsNAME READY STATUS RESTARTS AGEapp 0/1 ContainerCreating 0 32sfluent-ui 0/1 ContainerCreating 0 32sred 0/3 ContainerCreating 0 20s answer : 3 2. Identify the name of the containers running in the blue pod. controlplane ~ ➜ .. 2024. 7. 5.
[cka] Secrets 1. How many Secrets exist on the system?In the current(default) namespace.controlplane ~ ➜ k get secrets NAME TYPE DATA AGEdashboard-token kubernetes.io/service-account-token 3 2m14s answer : 1 2. How many secrets are defined in the dashboard-token secret?controlplane ~ ➜ k describe secrets dashboard-tokenName: dashboard-tokenNam.. 2024. 7. 5.
[cka] Env Variables 1. How many PODs exist on the system?in the current(default) namespace controlplane ~ ➜ k get podsNAME READY STATUS RESTARTS AGEwebapp-color 1/1 Running 0 6m9s answer : 1 2. What is the environment variable name set on the container in the pod?controlplane ~ ➜ k describe pod webapp-color Name: webapp-colorNamespace: defaultPriority: .. 2024. 7. 5.
반응형