-
Notifications
You must be signed in to change notification settings - Fork 44
/
makefile
52 lines (39 loc) · 1.91 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
tfinit:
cd clusters/lab; terraform init
lab:
./generate-configs.sh
cd clusters/lab; terraform apply -auto-approve
nukelab:
cd clusters/lab; terraform destroy
remove-bootstrap-lab:
cd clusters/lab; terraform apply -auto-approve -var 'bootstrap_complete=true'
wait-for-bootstrap:
cd openshift; openshift-install wait-for install-complete --log-level debug
wait-for-install:
cd openshift; openshift-install wait-for install-complete --log-level debug
check-install:
oc --kubeconfig openshift/auth/kubeconfig get nodes && echo "" && \
oc --kubeconfig openshift/auth/kubeconfig get co && echo "" && \
oc --kubeconfig openshift/auth/kubeconfig get csr
# lazy because it auto approves CSRs - not production suitable!
lazy-install:
oc --kubeconfig openshift/auth/kubeconfig get nodes && echo "" && \
oc --kubeconfig openshift/auth/kubeconfig get co && echo "" && \
oc --kubeconfig openshift/auth/kubeconfig get csr && \
oc --kubeconfig openshift/auth/kubeconfig get csr -ojson | \
jq -r '.items[] | select(.status == {} ) | .metadata.name' | \
xargs oc --kubeconfig openshift/auth/kubeconfig adm certificate approve
get-co:
oc --kubeconfig openshift/auth/kubeconfig get co
get-nodes:
oc --kubeconfig openshift/auth/kubeconfig get nodes
get-csr:
oc --kubeconfig openshift/auth/kubeconfig get csr
approve-csr:
oc --kubeconfig openshift/auth/kubeconfig get csr -ojson | \
jq -r '.items[] | select(.status == {} ) | .metadata.name' | \
xargs oc --kubeconfig openshift/auth/kubeconfig adm certificate approve
import-ova:
govc import.ova --folder=templates --ds=mx1tb --name=rhcos-4.6.1 https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.6/4.6.1/rhcos-vmware.x86_64.ova
kraken:
docker run --name=kraken --net=host -v /Users/alex/git/ib/ocp4/openshift/auth/kubeconfig:/root/.kube/config -v /Users/alex/git/ib/ocp4/kraken/config/config.yaml:/root/kraken/config/config.yaml -d quay.io/openshift-scale/kraken:latest