kubectl get pods -n cluster-autoscaler -o yaml cluster-autoscaler-0987654321

From wikieduonline
Jump to navigation Jump to search

apiVersion: v1
kind: Pod
metadata:
  annotations:
    kubernetes.io/psp: eks.privileged
  creationTimestamp: "2022-05-19T08:08:48Z"
  generateName: cluster-autoscaler-86cff49dd4-
  labels:
    app.kubernetes.io/instance: cluster-autoscaler
    app.kubernetes.io/name: cluster-autoscaler
    pod-template-hash: 86cff49dd4
  name: cluster-autoscaler-86cff49dd4-7tch7
  namespace: cluster-autoscaler
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: cluster-autoscaler-86cff49dd4
    uid: 94cf5364-f245-416f-979a-aba573face26
  resourceVersion: "15688234"
  uid: 012346-1234-1234
spec:
  containers:
  - command:
    - ./cluster-autoscaler
    - --cloud-provider=aws
    - --namespace=cluster-autoscaler
    - --node-group-auto-discovery=asg:tag=k8s.io/cluster-autoscaler/enabled,k8s.io/cluster-autoscaler/your-cluster
    - --balance-similar-node-groups=true
    - --balancing-ignore-label=topology.ebs.csi.aws.com/zone
    - --balancing-ignore-label=eks.amazonaws.com/nodegroup
    - --balancing-ignore-label=eks.amazonaws.com/nodegroup-image
    - --balancing-ignore-label=eks.amazonaws.com/sourceLaunchTemplateId
    - --balancing-ignore-label=eks.amazonaws.com/sourceLaunchTemplateVersion
    - --logtostderr=true
    - --scale-down-utilization-threshold=0.7
    - --skip-nodes-with-local-storage=false
    - --stderrthreshold=info
    - --v=4
    env:
    - name: AWS_REGION
      value: ap-southeast-1
    - name: AWS_STS_REGIONAL_ENDPOINTS
      value: regional
    - name: AWS_ROLE_ARN
      value: arn:aws:iam::0987654321:role/your-cluster-cluster-autoscaler
    - name: AWS_WEB_IDENTITY_TOKEN_FILE
      value: /var/run/secrets/eks.amazonaws.com/serviceaccount/token
    image: k8s.gcr.io/autoscaling/cluster-autoscaler:v1.21.2
    imagePullPolicy: IfNotPresent
    livenessProbe:
      failureThreshold: 3
      httpGet:
        path: /health-check
        port: 8085
        scheme: HTTP
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 1
    name: cluster-autoscaler
    ports:
    - containerPort: 8085
      protocol: TCP
    resources: {}
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-hgmfp
      readOnly: true
    - mountPath: /var/run/secrets/eks.amazonaws.com/serviceaccount
      name: aws-iam-token
      readOnly: true
  dnsPolicy: ClusterFirst
  enableServiceLinks: true
  nodeName: ip-10-10-10-10.ap-southeast-1.compute.internal
  preemptionPolicy: PreemptLowerPriority
  priority: 9000
  priorityClassName: eks-addons
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext: {}
  serviceAccount: cluster-autoscaler
  serviceAccountName: cluster-autoscaler
  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: aws-iam-token
    projected:
      defaultMode: 420
      sources:
      - serviceAccountToken:
          audience: sts.amazonaws.com
          expirationSeconds: 86400
          path: token
  - name: kube-api-access-hgmfp
    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-05-19T08:08:48Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2022-06-01T17:59:34Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2022-06-01T17:59:34Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2022-05-19T08:08:48Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://d487c487f45d71c992cd5fad8616d3d22dcb57191e6f1905bc26366eb6600bb4
    image: k8s.gcr.io/autoscaling/cluster-autoscaler:v1.21.2
    imageID: k8s.gcr.io/autoscaling/cluster-autoscaler@sha256:69e980d32052fa6c38e8744f1db9b176f11a2a2eb0d5a1db8990139dd29ded4b
    lastState:
      terminated:
        containerID: containerd://c1ec16d45d8c1cf59c579d5515570b34123243254235
        exitCode: 255
        finishedAt: "2022-06-01T17:59:32Z"
        reason: Error
        startedAt: "2022-05-19T08:08:51Z"
    name: cluster-autoscaler
    ready: true
    restartCount: 1
    started: true
    state:
      running:
        startedAt: "2022-06-01T17:59:33Z"
  hostIP: 10.90.184.135
  phase: Running
  podIP: 10.90.189.5
  podIPs:
  - ip: 10.90.189.5
  qosClass: BestEffort
  startTime: "2022-05-19T08:08:48Z"


Related[edit]

See also[edit]

Advertising: