Skip to content

Commit 6b1c1b3

Browse files
author
wwanarif
committed
identify and set the correct internal dns svc
Signed-off-by: wwanarif <[email protected]>
1 parent cc4a2c3 commit 6b1c1b3

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

setup-scripts/setup-genai-studio/playbooks/deploy-monitoring.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
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

setup-scripts/setup-genai-studio/playbooks/deploy-studio.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@
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:

0 commit comments

Comments
 (0)