Skip to content

Commit 5e58e8c

Browse files
guillemfondindunglas
authored andcommitted
Update kubernetes.md to be complient with frankenphp
1 parent b96dc36 commit 5e58e8c

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

deployment/kubernetes.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,13 @@ If you do not have gcloud yet, install it with these command.
3333
curl https://sdk.cloud.google.com | bash
3434
```
3535

36-
#### 1. Build the PHP and Caddy Docker images and tag them
36+
#### 1. Build the PHP and PWA Docker images and tag them
3737

3838
Versioning: The 0.1.0 is the version. This value should be the same as the attribute `appVersion` in `Chart.yaml`.
3939
Infos for [Google Container pulling and pushing](https://cloud.google.com/container-registry/docs/pushing-and-pulling)
4040

4141
```console
42-
docker build -t gcr.io/test-api-platform/php:0.1.0 -t gcr.io/test-api-platform/php:latest api --target php_prod
43-
docker build -t gcr.io/test-api-platform/caddy:0.1.0 -t gcr.io/test-api-platform/caddy:latest api --target caddy_prod
42+
docker build -t gcr.io/test-api-platform/php:0.1.0 -t gcr.io/test-api-platform/php:latest api --target frankenphp_prod
4443
docker build -t gcr.io/test-api-platform/pwa:0.1.0 -t gcr.io/test-api-platform/pwa:latest pwa --target prod
4544
```
4645

@@ -55,22 +54,19 @@ docker build -t gcr.io/test-api-platform/pwa:0.1.0 -t gcr.io/test-api-platform/p
5554
```console
5655
gcloud auth configure-docker
5756
docker push gcr.io/test-api-platform/php
58-
docker push gcr.io/test-api-platform/caddy
5957
docker push gcr.io/test-api-platform/pwa
6058
```
6159

6260
Optional: push the version images:
6361

6462
```console
6563
docker push gcr.io/test-api-platform/php:0.1.0
66-
docker push gcr.io/test-api-platform/caddy:0.1.0
6764
docker push gcr.io/test-api-platform/pwa:0.1.0
6865
```
6966

7067
The result should look similar to these images.
7168

7269
![Example of Google Images - Overview](images/google-image-overview.png)
73-
![Example of Google Caddy Image - Details](images/google-image-caddy-details.png)
7470

7571
## Deploying with Helm 3
7672

@@ -104,8 +100,6 @@ helm upgrade main ./helm/api-platform --namespace=default --create-namespace --w
104100
--install \
105101
--set "php.image.repository=gcr.io/test-api-platform/php" \
106102
--set php.image.tag=latest \
107-
--set "caddy.image.repository=gcr.io/test-api-platform/caddy" \
108-
--set caddy.image.tag=latest \
109103
--set "pwa.image.repository=gcr.io/test-api-platform/pwa" \
110104
--set pwa.image.tag=latest \
111105
--set php.appSecret='!ChangeMe!' \
@@ -180,16 +174,13 @@ kubectl --namespace=bar exec -it $PHP_POD -- bin/console doctrine:schema:create
180174
helm upgrade api-platform ./helm/api-platform --namespace=default \
181175
--set "php.image.repository=gcr.io/test-api-platform/php" \
182176
--set php.image.tag=latest \
183-
--set "caddy.image.repository=gcr.io/test-api-platform/caddy" \
184-
--set caddy.image.tag=latest \
185177
--set "pwa.image.repository=gcr.io/test-api-platform/pwa" \
186178
--set pwa.image.tag=latest \
187179
--set php.appSecret='!ChangeMe!' \
188180
--set postgresql.postgresqlPassword='!ChangeMe!' \
189181
--set postgresql.persistence.enabled=true \
190182
--set "corsAllowOrigin=^https?://[a-z\]*\.mywebsite.com$" \
191183
--set php.image.pullPolicy=Always \
192-
--set caddy.image.pullPolicy=Always \
193184
--set pwa.image.pullPolicy=Always
194185
```
195186

0 commit comments

Comments
 (0)