github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/manifests/rancher-cleanup/rancher-cleanup.yaml (about) 1 --- 2 apiVersion: v1 3 kind: ServiceAccount 4 metadata: 5 name: cleanup-service-account 6 namespace: verrazzano-install 7 --- 8 apiVersion: rbac.authorization.k8s.io/v1 9 kind: ClusterRoleBinding 10 metadata: 11 name: cleanup-admin 12 subjects: 13 - kind: ServiceAccount 14 name: cleanup-service-account 15 namespace: verrazzano-install 16 roleRef: 17 kind: ClusterRole 18 name: cluster-admin 19 apiGroup: rbac.authorization.k8s.io 20 --- 21 apiVersion: batch/v1 22 kind: Job 23 metadata: 24 name: cleanup-job 25 namespace: verrazzano-install 26 labels: 27 app: cleanup 28 spec: 29 template: 30 spec: 31 containers: 32 - name: cleanup 33 image: {{.RANCHER_CLEANUP_IMAGE}} 34 args: [ "force" ] 35 imagePullPolicy: IfNotPresent 36 serviceAccountName: cleanup-service-account 37 restartPolicy: Never 38 backoffLimit: 4