Last active
July 26, 2018 13:58
-
-
Save ravisantoshgudimetla/52f996d01d71dd5ea0a005073027a638 to your computer and use it in GitHub Desktop.
scheduler pod manifest file as a static pod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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