Skip to content

Instantly share code, notes, and snippets.

@jcantosz
Created July 17, 2017 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcantosz/6f3fbf6e1d11824f10801c8b8b3fe81f to your computer and use it in GitHub Desktop.
Save jcantosz/6f3fbf6e1d11824f10801c8b8b3fe81f to your computer and use it in GitHub Desktop.
apiVersion: batch/v1
kind: Job
metadata:
labels:
app: calico
name: configure-calico-mtu-1
namespace: kube-system
spec:
template:
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ""
labels:
job-name: configure-calico-mtu-1
name: configure-calico-mtu-1
spec:
containers:
- args:
- config
- set
- IpInIpMtu
- "1430"
- --raw=felix
env:
- name: ETCD_ENDPOINTS
valueFrom:
configMapKeyRef:
key: etcd_endpoints
name: calico-config
- name: ETCD_CA_CERT_FILE
valueFrom:
configMapKeyRef:
key: etcd_ca
name: calico-config
- name: ETCD_KEY_FILE
valueFrom:
configMapKeyRef:
key: etcd_key
name: calico-config
- name: ETCD_CERT_FILE
valueFrom:
configMapKeyRef:
key: etcd_cert
name: calico-config
image: <image_name>
imagePullPolicy: IfNotPresent
name: configure-calico
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /calico-secrets
name: etcd-certs
dnsPolicy: ClusterFirst
hostNetwork: true
nodeSelector:
beta.kubernetes.io/arch: amd64
role: master
restartPolicy: OnFailure
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoSchedule
key: dedicated
operator: Equal
value: master
- key: CriticalAddonsOnly
operator: Exists
volumes:
- name: etcd-certs
secret:
defaultMode: 420
secretName: calico-etcd-secrets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment