Created
August 8, 2018 11:30
-
-
Save isaldarriaga/3bedaf1dfa731485b6783a5f289740d6 to your computer and use it in GitHub Desktop.
on master node
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: api | |
openshift.io/control-plane: 'true' | |
name: master-api | |
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 api --config=/etc/origin/master/master-config.yaml\ | |
\ --loglevel=${DEBUG_LOGLEVEL:-2}\n" | |
command: | |
- /bin/bash | |
- -c | |
image: docker.io/openshift/origin-control-plane:v3.10.0 | |
livenessProbe: | |
httpGet: | |
path: healthz | |
port: 443 | |
scheme: HTTPS | |
initialDelaySeconds: 45 | |
timeoutSeconds: 10 | |
name: api | |
readinessProbe: | |
httpGet: | |
path: healthz/ready | |
port: 443 | |
scheme: HTTPS | |
initialDelaySeconds: 10 | |
timeoutSeconds: 10 | |
securityContext: | |
privileged: true | |
volumeMounts: | |
- mountPath: /etc/origin/master/ | |
name: master-config | |
- mountPath: /etc/origin/cloudprovider/ | |
name: master-cloud-provider | |
- mountPath: /var/lib/origin/ | |
name: master-data | |
hostNetwork: true | |
restartPolicy: Always | |
volumes: | |
- hostPath: | |
path: /etc/origin/master/ | |
name: master-config | |
- hostPath: | |
path: /etc/origin/cloudprovider | |
name: master-cloud-provider | |
- hostPath: | |
path: /var/lib/origin | |
name: master-data` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment