kubectl_set
Differences
This shows you the differences between two versions of the page.
| kubectl_set [2025/07/26 17:09] – - Imported by DokuWiki Advanced Plugin wikiadm | kubectl_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, | ||
| - | </ | ||
| - | <file yaml zabbix-agent-resources.yaml> | ||
| - | apiVersion: v1 | ||
| - | kind: Pod | ||
| - | metadata: | ||
| - | annotations: | ||
| - | cni.projectcalico.org/ | ||
| - | cni.projectcalico.org/ | ||
| - | cni.projectcalico.org/ | ||
| - | creationTimestamp: | ||
| - | labels: | ||
| - | app: zabbix-aget | ||
| - | name: zabbix-agent | ||
| - | namespace: default | ||
| - | resourceVersion: | ||
| - | uid: 9fca01f6-d324-498c-b394-d05782a93264 | ||
| - | spec: | ||
| - | containers: | ||
| - | - env: | ||
| - | - name: ZBX_SERVER_HOST | ||
| - | value: zabbix-server | ||
| - | image: zabbix-agent | ||
| - | imagePullPolicy: | ||
| - | name: zabbix-agent | ||
| - | ports: | ||
| - | - containerPort: | ||
| - | protocol: TCP | ||
| - | resources: | ||
| - | limits: | ||
| - | cpu: 200m | ||
| - | memory: 256Mi | ||
| - | requests: | ||
| - | cpu: 100m | ||
| - | memory: 128Mi | ||
| - | securityContext: | ||
| - | privileged: true | ||
| - | terminationMessagePath: | ||
| - | terminationMessagePolicy: | ||
| - | volumeMounts: | ||
| - | - mountPath: / | ||
| - | name: kube-api-access-bqql5 | ||
| - | readOnly: true | ||
| - | dnsPolicy: ClusterFirst | ||
| - | enableServiceLinks: | ||
| - | nodeName: kube-worker-01.juntotelecom.com.br | ||
| - | preemptionPolicy: | ||
| - | priority: 0 | ||
| - | restartPolicy: | ||
| - | schedulerName: | ||
| - | securityContext: | ||
| - | serviceAccount: | ||
| - | serviceAccountName: | ||
| - | terminationGracePeriodSeconds: | ||
| - | tolerations: | ||
| - | - effect: NoExecute | ||
| - | key: node.kubernetes.io/ | ||
| - | operator: Exists | ||
| - | tolerationSeconds: | ||
| - | - effect: NoExecute | ||
| - | key: node.kubernetes.io/ | ||
| - | operator: Exists | ||
| - | tolerationSeconds: | ||
| - | volumes: | ||
| - | - name: kube-api-access-bqql5 | ||
| - | projected: | ||
| - | defaultMode: | ||
| - | sources: | ||
| - | - serviceAccountToken: | ||
| - | expirationSeconds: | ||
| - | 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: | ||
| - | lastTransitionTime: | ||
| - | status: " | ||
| - | type: Initialized | ||
| - | - lastProbeTime: | ||
| - | lastTransitionTime: | ||
| - | message: ' | ||
| - | reason: ContainersNotReady | ||
| - | status: " | ||
| - | type: Ready | ||
| - | - lastProbeTime: | ||
| - | lastTransitionTime: | ||
| - | message: ' | ||
| - | reason: ContainersNotReady | ||
| - | status: " | ||
| - | type: ContainersReady | ||
| - | - lastProbeTime: | ||
| - | lastTransitionTime: | ||
| - | status: " | ||
| - | type: PodScheduled | ||
| - | containerStatuses: | ||
| - | - image: zabbix-agent | ||
| - | imageID: "" | ||
| - | lastState: {} | ||
| - | name: zabbix-agent | ||
| - | ready: false | ||
| - | restartCount: | ||
| - | started: false | ||
| - | state: | ||
| - | waiting: | ||
| - | message: Back-off pulling image " | ||
| - | reason: ImagePullBackOff | ||
| - | hostIP: 177.75.176.41 | ||
| - | phase: Pending | ||
| - | podIP: 10.244.101.86 | ||
| - | podIPs: | ||
| - | - ip: 10.244.101.86 | ||
| - | - ip: fd00:: | ||
| - | qosClass: BestEffort | ||
| - | startTime: " | ||
| - | </ | ||
kubectl_set.1753560544.txt.gz · Last modified: by wikiadm
