mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-17 22:37:45 -02:30
Bugfixes
- Don't create registry pod if it already exists - Fix shell commands
This commit is contained in:
@@ -36,6 +36,7 @@
|
|||||||
args:
|
args:
|
||||||
chdir: /root/ccp
|
chdir: /root/ccp
|
||||||
run_once: true
|
run_once: true
|
||||||
|
when: get_pod.stdout.find('registry') == -1
|
||||||
|
|
||||||
- name: Create registry svc
|
- name: Create registry svc
|
||||||
shell: kubectl create -f registry_svc.yaml
|
shell: kubectl create -f registry_svc.yaml
|
||||||
@@ -45,11 +46,11 @@
|
|||||||
when: get_svc.stdout.find('registry') == -1
|
when: get_svc.stdout.find('registry') == -1
|
||||||
|
|
||||||
- name: Fetch CCP images
|
- name: Fetch CCP images
|
||||||
shell: "mcp-microservices --config-file=/root/ccp/ccp.conf fetch &> /var/log/ccp-fetch.log"
|
shell: mcp-microservices --config-file=/root/ccp/ccp.conf fetch
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
- name: Build CCP images
|
- name: Build CCP images
|
||||||
shell: "mcp-microservices --config-file=/root/ccp/ccp.conf build &> /var/log/ccp-build.log"
|
shell: mcp-microservices --config-file=/root/ccp/ccp.conf build
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
- hosts: k8s-cluster
|
- hosts: k8s-cluster
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
run_once: true
|
run_once: true
|
||||||
|
|
||||||
- name: Deploy CCP
|
- name: Deploy CCP
|
||||||
shell: "mcp-microservices --config-file=/root/ccp/ccp.conf deploy &> /var/log/ccp-deploy.log"
|
shell: mcp-microservices --config-file=/root/ccp/ccp.conf deploy
|
||||||
args:
|
args:
|
||||||
chdir: /root/ccp
|
chdir: /root/ccp
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|||||||
Reference in New Issue
Block a user