Skip to content

Instantly share code, notes, and snippets.

@mjudeikis
Created August 5, 2020 15:29
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 mjudeikis/34a53d25d083010b80ddcba3ab853acd to your computer and use it in GitHub Desktop.
Save mjudeikis/34a53d25d083010b80ddcba3ab853acd to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: csr
namespace: openshift-cluster-machine-approver
spec:
serviceAccount: machine-approver-sa
serviceAccountName: machine-approver-sa
containers:
- args:
- sh
- -c
- oc get csr -o name | xargs oc adm certificate approve >/dev/termination-log; exit 1
image: registry.redhat.io/openshift4/ose-tools-rhel7:latest
name: csr
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 120
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 120
- effect: NoSchedule
key: node.kubernetes.io/memory-pressure
operator: Exists
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment