Skip to content

Instantly share code, notes, and snippets.

@marccampbell
Last active October 18, 2020 04:28
Show Gist options
  • Save marccampbell/5dd25ae11166a283d97763c43e74d167 to your computer and use it in GitHub Desktop.
Save marccampbell/5dd25ae11166a283d97763c43e74d167 to your computer and use it in GitHub Desktop.
EKS kube-proxy ARM
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
k8s-app: kube-proxy-arm
eks.amazonaws.com/component: kube-proxy
name: kube-proxy-arm
namespace: kube-system
spec:
selector:
matchLabels:
k8s-app: kube-proxy-arm
updateStrategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 10%
template:
metadata:
labels:
k8s-app: kube-proxy-arm
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: "kubernetes.io/os"
operator: In
values:
- linux
- key: "kubernetes.io/arch"
operator: In
values:
- arm64
hostNetwork: true
tolerations:
- operator: "Exists"
priorityClassName: system-node-critical
containers:
- name: kube-proxy-arm
image: 602401143452.dkr.ecr.us-west-2.amazonaws.com/eks/kube-proxy-arm64:v1.17.6
resources:
requests:
cpu: 100m
command:
- /bin/sh
- -c
- kube-proxy --v=2 --config=/var/lib/kube-proxy-config/config
securityContext:
privileged: true
volumeMounts:
- mountPath: /var/log
name: varlog
readOnly: false
- mountPath: /run/xtables.lock
name: xtables-lock
readOnly: false
- mountPath: /lib/modules
name: lib-modules
readOnly: true
- name: kubeconfig
mountPath: /var/lib/kube-proxy/
- name: config
mountPath: /var/lib/kube-proxy-config/
volumes:
- name: varlog
hostPath:
path: /var/log
- name: xtables-lock
hostPath:
path: /run/xtables.lock
type: FileOrCreate
- name: lib-modules
hostPath:
path: /lib/modules
- name: kubeconfig
configMap:
name: kube-proxy
- name: config
configMap:
name: kube-proxy-config
serviceAccountName: kube-proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment