Fix init command in wordpress example

This commit is contained in:
minchao
2021-03-24 11:19:53 +08:00
parent 7b38ce4ef2
commit e6b52e7295
3 changed files with 22 additions and 21 deletions

View File

@@ -8,9 +8,8 @@ spec:
initContainers:
- name: init-command
image: debian
command:
- "echo $(WORDPRESS_SERVICE)"
- "echo $(MYSQL_SERVICE)"
command: ["/bin/sh"]
args: ["-c", "echo $(WORDPRESS_SERVICE); echo $(MYSQL_SERVICE)"]
containers:
- name: wordpress
env: