Skip to content

Instantly share code, notes, and snippets.

@mveitas
Last active September 5, 2019 00:37
Show Gist options
  • Save mveitas/180175c062d03501a37a728be5fe4eb7 to your computer and use it in GitHub Desktop.
Save mveitas/180175c062d03501a37a728be5fe4eb7 to your computer and use it in GitHub Desktop.
➜ ambassador-config (⎈ arn:aws:eks:us-east-1:360915197767:cluster/mv-eks-ebs-eks:default) kubectl describe pod aws-node-69nk7 -n kube-system
Name: aws-node-69nk7
Namespace: kube-system
Priority: 2000000000
PriorityClassName: system-cluster-critical
Node: ip-172-27-163-78.ec2.internal/172.27.163.78
Start Time: Thu, 29 Aug 2019 22:53:22 -0400
Labels: controller-revision-hash=77f89bb99b
k8s-app=aws-node
pod-template-generation=1
Annotations: kubernetes.io/psp: eks.privileged
Status: Running
IP: 172.27.163.78
Controlled By: DaemonSet/aws-node
Containers:
aws-node:
Container ID: docker://632850882c095c51f9ad33fe745afe173e6e5a378a4b6094e2e2837fdd2000f8
Image: 602401143452.dkr.ecr.us-east-1.amazonaws.com/amazon-k8s-cni:v1.5.1
Image ID: docker-pullable://602401143452.dkr.ecr.us-east-1.amazonaws.com/amazon-k8s-cni@sha256:7e26e2b87a3050f7143e5ed4cc19ca7a71c1b6c308c315e3611fed2590c18a4c
Port: 61678/TCP
Host Port: 61678/TCP
State: Running
Started: Thu, 29 Aug 2019 22:53:34 -0400
Ready: True
Restart Count: 0
Requests:
cpu: 10m
Environment:
AWS_VPC_K8S_CNI_LOGLEVEL: DEBUG
MY_NODE_NAME: (v1:spec.nodeName)
WATCH_NAMESPACE: kube-system (v1:metadata.namespace)
Mounts:
/host/etc/cni/net.d from cni-net-dir (rw)
/host/opt/cni/bin from cni-bin-dir (rw)
/host/var/log from log-dir (rw)
/var/run/docker.sock from dockersock (rw)
/var/run/secrets/kubernetes.io/serviceaccount from aws-node-token-djv6s (ro)
Conditions:
Type Status
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
cni-bin-dir:
Type: HostPath (bare host directory volume)
Path: /opt/cni/bin
HostPathType:
cni-net-dir:
Type: HostPath (bare host directory volume)
Path: /etc/cni/net.d
HostPathType:
log-dir:
Type: HostPath (bare host directory volume)
Path: /var/log
HostPathType:
dockersock:
Type: HostPath (bare host directory volume)
Path: /var/run/docker.sock
HostPathType:
aws-node-token-djv6s:
Type: Secret (a volume populated by a Secret)
SecretName: aws-node-token-djv6s
Optional: false
QoS Class: Burstable
Node-Selectors: <none>
Tolerations:
node.kubernetes.io/disk-pressure:NoSchedule
node.kubernetes.io/memory-pressure:NoSchedule
node.kubernetes.io/network-unavailable:NoSchedule
node.kubernetes.io/not-ready:NoExecute
node.kubernetes.io/unreachable:NoExecute
node.kubernetes.io/unschedulable:NoSchedule
Events: <none>
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"extensions/v1beta1","kind":"DaemonSet","metadata":{"annotations":{},"labels":{"k8s-app":"aws-node"},"name":"aws-node","namespace":"kube-system"},"spec":{"selector":{"matchLabels":{"k8s-app":"aws-node"}},"template":{"metadata":{"labels":{"k8s-app":"aws-node"}},"spec":{"affinity":{"nodeAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"beta.kubernetes.io/os","operator":"In","values":["linux"]},{"key":"beta.kubernetes.io/arch","operator":"In","values":["amd64"]}]}]}}},"containers":[{"env":[{"name":"AWS_VPC_K8S_CNI_LOGLEVEL","value":"DEBUG"},{"name":"MY_NODE_NAME","valueFrom":{"fieldRef":{"fieldPath":"spec.nodeName"}}},{"name":"WATCH_NAMESPACE","valueFrom":{"fieldRef":{"fieldPath":"metadata.namespace"}}}],"image":"602401143452.dkr.ecr.us-east-1.amazonaws.com/amazon-k8s-cni:v1.5.1","imagePullPolicy":"Always","name":"aws-node","ports":[{"containerPort":61678,"name":"metrics"}],"resources":{"requests":{"cpu":"10m"}},"securityContext":{"privileged":true},"volumeMounts":[{"mountPath":"/host/opt/cni/bin","name":"cni-bin-dir"},{"mountPath":"/host/etc/cni/net.d","name":"cni-net-dir"},{"mountPath":"/host/var/log","name":"log-dir"},{"mountPath":"/var/run/docker.sock","name":"dockersock"}]}],"hostNetwork":true,"priorityClassName":"system-cluster-critical","serviceAccountName":"aws-node","tolerations":[{"operator":"Exists"}],"volumes":[{"hostPath":{"path":"/opt/cni/bin"},"name":"cni-bin-dir"},{"hostPath":{"path":"/etc/cni/net.d"},"name":"cni-net-dir"},{"hostPath":{"path":"/var/log"},"name":"log-dir"},{"hostPath":{"path":"/var/run/docker.sock"},"name":"dockersock"}]}},"updateStrategy":{"type":"RollingUpdate"}}}
creationTimestamp: null
generation: 1
labels:
k8s-app: aws-node
name: aws-node
selfLink: /apis/extensions/v1beta1/namespaces/kube-system/daemonsets/aws-node
spec:
revisionHistoryLimit: 10
selector:
matchLabels:
k8s-app: aws-node
template:
metadata:
creationTimestamp: null
labels:
k8s-app: aws-node
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: beta.kubernetes.io/os
operator: In
values:
- linux
- key: beta.kubernetes.io/arch
operator: In
values:
- amd64
containers:
- env:
- name: AWS_VPC_K8S_CNI_LOGLEVEL
value: DEBUG
- name: MY_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
image: 602401143452.dkr.ecr.us-east-1.amazonaws.com/amazon-k8s-cni:v1.5.1
imagePullPolicy: Always
name: aws-node
ports:
- containerPort: 61678
hostPort: 61678
name: metrics
protocol: TCP
resources:
requests:
cpu: 10m
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /host/opt/cni/bin
name: cni-bin-dir
- mountPath: /host/etc/cni/net.d
name: cni-net-dir
- mountPath: /host/var/log
name: log-dir
- mountPath: /var/run/docker.sock
name: dockersock
dnsPolicy: ClusterFirst
hostNetwork: true
priorityClassName: system-cluster-critical
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: aws-node
serviceAccountName: aws-node
terminationGracePeriodSeconds: 30
tolerations:
- operator: Exists
volumes:
- hostPath:
path: /opt/cni/bin
type: ""
name: cni-bin-dir
- hostPath:
path: /etc/cni/net.d
type: ""
name: cni-net-dir
- hostPath:
path: /var/log
type: ""
name: log-dir
- hostPath:
path: /var/run/docker.sock
type: ""
name: dockersock
templateGeneration: 1
updateStrategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate
status:
currentNumberScheduled: 0
desiredNumberScheduled: 0
numberMisscheduled: 0
numberReady: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment