File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
setup-scripts/setup-genai-studio/playbooks Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 55 shell : kubectl get namespace local-path-storage --ignore-not-found
66 register : namespace_check
77 ignore_errors : yes
8+ changed_when : false
89
910 - name : Install local-path-provisioner if namespace does not exist
1011 shell : kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/v0.0.30/deploy/local-path-storage.yaml
Original file line number Diff line number Diff line change 1414 command : kubectl create namespace studio
1515 ignore_errors : yes
1616
17+ - name : Check for coredns service
18+ shell : kubectl get svc coredns -n kube-system --ignore-not-found
19+ register : coredns_check
20+ ignore_errors : yes
21+ changed_when : false
22+
23+ - name : Update manifest if coredns is available
24+ shell : sed -i 's/kube-dns/coredns/g' ../manifests/studio-manifest.yaml
25+ when : coredns_check.stdout != ''
26+
1727 - name : Apply customized studio manifest
1828 shell : " envsubst '${REGISTRY} ${TAG}' < ../manifests/studio-manifest.yaml | kubectl apply -f -"
1929 environment :
You can’t perform that action at this time.
0 commit comments