Skip to content

Commit a8ae4b4

Browse files
committed
cs: add backticks
1 parent 8af059e commit a8ae4b4

File tree

1 file changed

+30
-21
lines changed

1 file changed

+30
-21
lines changed

deployment/kubernetes.md

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,30 @@ package manager) chart to deploy in a wink on any of these platforms.
1818

1919
1. Build the PHP and Nginx Docker images:
2020

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+
```
2426

2527
2. Push your images to your Docker registry, example with [Google Container Registry](https://cloud.google.com/container-registry/):
2628

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+
```
3945

4046
## Deploying
4147

@@ -89,19 +95,22 @@ Before running your application for the first time, be sure to create the databa
8995
```
9096
PHP_POD=$(kubectl --namespace=bar get pods -l app=php -o jsonpath="{.items[0].metadata.name}")
9197
kubectl --namespace=bar exec -it $PHP_POD -- bin/console doctrine:schema:create
98+
```
9299

93100
## Tiller RBAC Issue
94101

95102
We noticed that some tiller RBAC trouble occurred, you generally can resolve it running:
96103

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
99107
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
102110
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+
```
105114

106115
Please, see the [related issue](https://github.com/kubernetes/helm/issues/3130) for further details / informations
107116
You can also take a look to the [related documentation](https://github.com/kubernetes/helm/blob/master/docs/rbac.md)

0 commit comments

Comments
 (0)