KILLERCODA - CKAD - Api Deprecations 오답노트

hyereen·2025년 2월 1일

Kubernetes

목록 보기
47/53

1
Create file /root/versions with three lines. Each line containing only one number from the installed K8s server version:
1. Major
2. Minor
3. Patch

정답

controlplane $ k version
Client Version: v1.31.0
Kustomize Version: v5.4.2
Server Version: v1.31.0
controlplane $ vi /root/versions
controlplane $ cat /root/versions
1
31
0 

2
Write the Api Group of Deployments into /root/group .

정답

echo apps > /root/group

참고

controlplane $ k explain deploy
GROUP:      apps
KIND:       Deployment
VERSION:    v1

DESCRIPTION:
    Deployment enables declarative updates for Pods and ReplicaSets.
    
FIELDS:
  apiVersion    <string>
    APIVersion defines the versioned schema of this representation of an object.
    Servers should convert recognized schemas to the latest internal value, and
    may reject unrecognized values. More info:
    https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

  kind  <string>
    Kind is a string value representing the REST resource this object
    represents. Servers may infer this from the endpoint the client submits
    requests to. Cannot be updated. In CamelCase. More info:
    https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

  metadata      <ObjectMeta>
    Standard object's metadata. More info:
    https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

  spec  <DeploymentSpec>
    Specification of the desired behavior of the Deployment.

  status        <DeploymentStatus>
    Most recently observed status of the Deployment.

0개의 댓글