Skip to content

Instantly share code, notes, and snippets.

@ravisantoshgudimetla
Last active July 26, 2018 13:58
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 ravisantoshgudimetla/52f996d01d71dd5ea0a005073027a638 to your computer and use it in GitHub Desktop.
Save ravisantoshgudimetla/52f996d01d71dd5ea0a005073027a638 to your computer and use it in GitHub Desktop.
scheduler pod manifest file as a static pod
apiVersion: v1
kind: Pod
metadata:
annotations:
scheduler.alpha.kubernetes.io/critical-pod: ''
labels:
openshift.io/component: scheduler
openshift.io/control-plane: 'true'
name: master-scheduler
namespace: kube-system
spec:
containers:
- args:
- "#!/bin/bash\nset -euo pipefail\nif [[ -f /etc/origin/master/master.env ]];\
\ then\n set -o allexport\n source /etc/origin/master/master.env\nfi\n if [[ -f /etc/origin/master/master-config.yaml ]]; then\n config=/etc/origin/master/master-config.yaml\nfi\n flags=$( /usr/bin/openshift-master-config --schedule
r=true \"--config=${config}\" )\n eval \"exec /usr/bin/hyperkube scheduler ${flags}\""
command:
- /bin/bash
- -c
image: docker.io/ravig/origin-hyperkube:latest
name: scheduler
securityContext:
privileged: true
volumeMounts:
- mountPath: /etc/origin/master/
name: master-config
- mountPath: /etc/origin/cloudprovider/
name: master-cloud-provider
- mountPath: /etc/containers/registries.d/
name: signature-import
hostNetwork: true
restartPolicy: Always
volumes:
- hostPath:
path: /etc/origin/master/
name: master-config
- hostPath:
path: /etc/origin/cloudprovider
name: master-cloud-provider
- hostPath:
path: /etc/containers/registries.d
name: signature-import
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment