@@ -18,24 +18,30 @@ package manager) chart to deploy in a wink on any of these platforms.
18
18
19
19
1 . Build the PHP and Nginx Docker images:
20
20
21
- docker build -t gcr.io/test-api-platform/php -t gcr.io/test-api-platform/php:latest api --target api_platform_php
22
- docker build -t gcr.io/test-api-platform/nginx -t gcr.io/test-api-platform/nginx:latest api --target api_platform_nginx
23
- docker build -t gcr.io/test-api-platform/varnish -t gcr.io/test-api-platform/varnish:latest api --target api_platform_varnish
21
+ ```
22
+ docker build -t gcr.io/test-api-platform/php -t gcr.io/test-api-platform/php:latest api --target api_platform_php
23
+ docker build -t gcr.io/test-api-platform/nginx -t gcr.io/test-api-platform/nginx:latest api --target api_platform_nginx
24
+ docker build -t gcr.io/test-api-platform/varnish -t gcr.io/test-api-platform/varnish:latest api --target api_platform_varnish
25
+ ```
24
26
25
27
2 . Push your images to your Docker registry, example with [ Google Container Registry] ( https://cloud.google.com/container-registry/ ) :
26
28
27
- Docker client versions <= 18.03:
28
-
29
- gcloud docker -- push gcr.io/test-api-platform/php
30
- gcloud docker -- push gcr.io/test-api-platform/nginx
31
- gcloud docker -- push gcr.io/test-api-platform/varnish
32
-
33
- Docker client versions > 18.03:
34
-
35
- gcloud auth configure-docker
36
- docker push gcr.io/test-api-platform/php
37
- docker push gcr.io/test-api-platform/nginx
38
- docker push gcr.io/test-api-platform/varnish
29
+ Docker client versions <= 18.03:
30
+
31
+ ```
32
+ gcloud docker -- push gcr.io/test-api-platform/php
33
+ gcloud docker -- push gcr.io/test-api-platform/nginx
34
+ gcloud docker -- push gcr.io/test-api-platform/varnish
35
+ ```
36
+
37
+ Docker client versions > 18.03:
38
+
39
+ ```
40
+ gcloud auth configure-docker
41
+ docker push gcr.io/test-api-platform/php
42
+ docker push gcr.io/test-api-platform/nginx
43
+ docker push gcr.io/test-api-platform/varnish
44
+ ```
39
45
40
46
## Deploying
41
47
@@ -89,19 +95,22 @@ Before running your application for the first time, be sure to create the databa
89
95
```
90
96
PHP_POD=$(kubectl --namespace=bar get pods -l app=php -o jsonpath="{.items[0].metadata.name}")
91
97
kubectl --namespace=bar exec -it $PHP_POD -- bin/console doctrine:schema:create
98
+ ```
92
99
93
100
## Tiller RBAC Issue
94
101
95
102
We noticed that some tiller RBAC trouble occurred, you generally can resolve it running:
96
103
97
- kubectl create serviceaccount --namespace kube-system tiller
98
- serviceaccount "tiller" created
104
+ ```
105
+ kubectl create serviceaccount --namespace kube-system tiller
106
+ serviceaccount "tiller" created
99
107
100
- kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
101
- clusterrolebinding "tiller-cluster-rule" created
108
+ kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
109
+ clusterrolebinding "tiller-cluster-rule" created
102
110
103
- kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
104
- deployment "tiller-deploy" patched
111
+ kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
112
+ deployment "tiller-deploy" patched
113
+ ```
105
114
106
115
Please, see the [ related issue] ( https://github.com/kubernetes/helm/issues/3130 ) for further details / informations
107
116
You can also take a look to the [ related documentation] ( https://github.com/kubernetes/helm/blob/master/docs/rbac.md )
0 commit comments