Created
October 27, 2020 03:01
-
-
Save csantanapr/1d58cc010ba99cb3b9030b81ed7ad3fd to your computer and use it in GitHub Desktop.
This file contains hidden or 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: ServiceAccount | |
metadata: | |
name: ibm-toolkit | |
namespace: default | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: ibm-toolkit | |
roleRef: | |
apiGroup: rbac.authorization.k8s.io | |
kind: ClusterRole | |
name: cluster-admin | |
subjects: | |
- kind: ServiceAccount | |
name: ibm-toolkit | |
namespace: default | |
--- | |
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: ibm-toolkit | |
namespace: default | |
spec: | |
template: | |
metadata: | |
labels: | |
run: ibm-toolkit | |
spec: | |
serviceAccount: ibm-toolkit | |
volumes: | |
- name: source | |
emptyDir: {} | |
containers: | |
- image: docker.io/ibmgaragecloud/cli-tools:0.8.0-lite | |
name: toolkit | |
volumeMounts: | |
- mountPath: /source | |
name: source | |
command: | |
- /bin/bash | |
- -c | |
- | | |
export TF_VAR_login_token=$(oc whoami -t) | |
export TF_VAR_server_url=$(oc whoami --show-server) | |
git clone https://github.com/ibm-garage-cloud/ibm-garage-iteration-zero.git /source | |
cd /source | |
./terraform/runTerraform.sh --ocp -a | |
restartPolicy: Never |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment