Skip to content

Commit

Permalink
fix service deployment order and dns bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dciangot committed Sep 27, 2019
1 parent a007457 commit eb42091
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tasks/start-cms-apps-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
src: templates/k8s/cvmfs.json
dest: /etc/cvmfs.json

- name: create squid pod
command: kubectl apply -f /etc/squid.json

- name: create squid service
command: kubectl apply -f /etc/squid-service.json

- name: create squid pod
command: kubectl apply -f /etc/squid.json

- name: wait for cms squid to be up and running
wait_for:
host: "{{cms_config_mysquid_host}}"
Expand All @@ -52,12 +52,12 @@
timeout: 600
connect_timeout: 10

- name: create tts_cache pod
command: kubectl apply -f /etc/tts_cache.json

- name: create tts_cache service
command: kubectl apply -f /etc/tts_cache-service.json

- name: create tts_cache pod
command: kubectl apply -f /etc/tts_cache.json

- name: wait for cms proxy cache service to be up and running
wait_for:
host: "{{cms_config_proxycache_host}}"
Expand Down
4 changes: 4 additions & 0 deletions templates/k8s/cvmfs.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
]
}
},
"dnsPolicy": "None",
"dnsConfig":{
"nameservers": ["8.8.8.8"]
},
"containers": [
{
"name": "cvmfs",
Expand Down
4 changes: 4 additions & 0 deletions templates/k8s/tts_cache.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
}
},
"spec": {
"dnsPolicy": "None",
"dnsConfig":{
"nameservers": ["8.8.8.8"]
},
"containers": [
{
"name": "tts-cache",
Expand Down
4 changes: 4 additions & 0 deletions templates/k8s/wn.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
]
}
},
"dnsPolicy": "None",
"dnsConfig":{
"nameservers": ["8.8.8.8"]
},
"containers": [
{
"name": "wn",
Expand Down

0 comments on commit eb42091

Please sign in to comment.