Skip to content

Instantly share code, notes, and snippets.

@ravisantoshgudimetla
Created July 23, 2018 16:53
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/abb9c2d869aa54141c1b1a0a8e782859 to your computer and use it in GitHub Desktop.
Save ravisantoshgudimetla/abb9c2d869aa54141c1b1a0a8e782859 to your computer and use it in GitHub Desktop.
Static pod description of kube-scheduler after broken from controller.
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\nexec\
\ openshift start master scheduler --config=/etc/origin/master/master-config.yaml\
\ --loglevel=${DEBUG_LOGLEVEL:-10}\n"
command:
- /bin/bash
- -c
image: docker.io/ravig/origin-control-plane: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