User Tools

Site Tools


kubectl_set

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

kubectl_set [2025/07/26 17:09] – - Imported by DokuWiki Advanced Plugin wikiadmkubectl_set [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== kubectl set ====== 
-<file bash> 
-$ kubectl set resources pod zabbix-agent --limits=cpu=200m,memory=256Mi --requests=cpu=100m,memory=128Mi --dry-run=client -o yaml > zabbix-agent-resources.yaml 
-</file> 
  
-<file yaml zabbix-agent-resources.yaml> 
-apiVersion: v1 
-kind: Pod 
-metadata: 
-  annotations: 
-    cni.projectcalico.org/containerID: 4e2eca4de6313dbc13c8740227852ee515899f8bdbf875ac6fc416dd3207bdec 
-    cni.projectcalico.org/podIP: 10.244.101.86/32 
-    cni.projectcalico.org/podIPs: 10.244.101.86/32,fd00::33:2603:770f:59b3:71d5/128 
-  creationTimestamp: "2022-06-23T21:01:30Z" 
-  labels: 
-    app: zabbix-aget 
-  name: zabbix-agent 
-  namespace: default 
-  resourceVersion: "8144061" 
-  uid: 9fca01f6-d324-498c-b394-d05782a93264 
-spec: 
-  containers: 
-  - env: 
-    - name: ZBX_SERVER_HOST 
-      value: zabbix-server 
-    image: zabbix-agent 
-    imagePullPolicy: Always 
-    name: zabbix-agent 
-    ports: 
-    - containerPort: 10050 
-      protocol: TCP 
-    resources: 
-      limits: 
-        cpu: 200m 
-        memory: 256Mi 
-      requests: 
-        cpu: 100m 
-        memory: 128Mi 
-    securityContext: 
-      privileged: true 
-    terminationMessagePath: /dev/termination-log 
-    terminationMessagePolicy: File 
-    volumeMounts: 
-    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount 
-      name: kube-api-access-bqql5 
-      readOnly: true 
-  dnsPolicy: ClusterFirst 
-  enableServiceLinks: true 
-  nodeName: kube-worker-01.juntotelecom.com.br 
-  preemptionPolicy: PreemptLowerPriority 
-  priority: 0 
-  restartPolicy: Always 
-  schedulerName: default-scheduler 
-  securityContext: {} 
-  serviceAccount: default 
-  serviceAccountName: default 
-  terminationGracePeriodSeconds: 30 
-  tolerations: 
-  - effect: NoExecute 
-    key: node.kubernetes.io/not-ready 
-    operator: Exists 
-    tolerationSeconds: 300 
-  - effect: NoExecute 
-    key: node.kubernetes.io/unreachable 
-    operator: Exists 
-    tolerationSeconds: 300 
-  volumes: 
-  - name: kube-api-access-bqql5 
-    projected: 
-      defaultMode: 420 
-      sources: 
-      - serviceAccountToken: 
-          expirationSeconds: 3607 
-          path: token 
-      - configMap: 
-          items: 
-          - key: ca.crt 
-            path: ca.crt 
-          name: kube-root-ca.crt 
-      - downwardAPI: 
-          items: 
-          - fieldRef: 
-              apiVersion: v1 
-              fieldPath: metadata.namespace 
-            path: namespace 
-status: 
-  conditions: 
-  - lastProbeTime: null 
-    lastTransitionTime: "2022-06-23T21:01:30Z" 
-    status: "True" 
-    type: Initialized 
-  - lastProbeTime: null 
-    lastTransitionTime: "2022-06-23T21:01:30Z" 
-    message: 'containers with unready status: [zabbix-agent]' 
-    reason: ContainersNotReady 
-    status: "False" 
-    type: Ready 
-  - lastProbeTime: null 
-    lastTransitionTime: "2022-06-23T21:01:30Z" 
-    message: 'containers with unready status: [zabbix-agent]' 
-    reason: ContainersNotReady 
-    status: "False" 
-    type: ContainersReady 
-  - lastProbeTime: null 
-    lastTransitionTime: "2022-06-23T21:01:30Z" 
-    status: "True" 
-    type: PodScheduled 
-  containerStatuses: 
-  - image: zabbix-agent 
-    imageID: "" 
-    lastState: {} 
-    name: zabbix-agent 
-    ready: false 
-    restartCount: 0 
-    started: false 
-    state: 
-      waiting: 
-        message: Back-off pulling image "zabbix-agent" 
-        reason: ImagePullBackOff 
-  hostIP: 177.75.176.41 
-  phase: Pending 
-  podIP: 10.244.101.86 
-  podIPs: 
-  - ip: 10.244.101.86 
-  - ip: fd00::33:2603:770f:59b3:71d5 
-  qosClass: BestEffort 
-  startTime: "2022-06-23T21:01:30Z" 
-</file> 
kubectl_set.1753560544.txt.gz · Last modified: by wikiadm