Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit f91de67

Browse files
author
Lukasz D. Tulikowski
authored
Merge pull request #24 from tulik/backfire-php-container-settings
Add kubernetes settings
2 parents d51d2ab + 86a2a1a commit f91de67

File tree

5 files changed

+28
-1
lines changed

5 files changed

+28
-1
lines changed

docker-compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ services:
1717
# If you develop on Windows change this to remote_host=docker.for.win.localhost
1818
# If you develop on Linux change this to remote_host=172.17.0.1
1919
XDEBUG_CONFIG: "remote_host=docker.for.mac.localhost idekey=IDE_XDEBUG"
20+
BLACKFIRE_CLIENT_ID: ${BLACKFIRE_CLIENT_ID}
21+
BLACKFIRE_CLIENT_TOKEN: ${BLACKFIRE_CLIENT_TOKEN}
2022

2123
symfony:
2224
build:
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: blackfire
5+
labels:
6+
app: {{ template "name" . }}-blackfire
7+
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
8+
release: {{ .Release.Name }}
9+
heritage: {{ .Release.Service }}
10+
spec:
11+
type: NodePort
12+
ports:
13+
- port: 8707
14+
targetPort: 8707
15+
protocol: TCP
16+
selector:
17+
app: {{ template "name" . }}-blackfire
18+
release: {{ .Release.Name }}

helm/symfony/templates/php-deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ spec:
4747
secretKeyRef:
4848
name: {{ template "fullname" . }}
4949
key: database-url
50+
- name: BLACKFIRE_CLIENT_ID
51+
value: {{ .Values.php.blackfire_client_id }}
52+
- name: BLACKFIRE_CLIENT_TOKEN
53+
value: {{ .Values.php.blackfire_client_token }}
54+
5055
resources:
5156
{{ toYaml .Values.resources | indent 12 }}
5257
{{- if .Values.nodeSelector }}

helm/symfony/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ php:
1212
tag: latest
1313
pullPolicy: Always
1414
replicaCount: 1
15+
blackfire_client_id: d29ef9e1-2f41-447c-aa5f-026f7970ead6
16+
blackfire_client_token: e49229d406cc07b0dc4672aadb2d16636c694018ee4e4fd12a85aef0073a46eb
1517

1618
nginx:
1719
repository: gcr.io/personal-dev-environment/nginx

symfony/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ DaTABASE_URL=postgres://symfony:symfony@postgres/symfony
1616
# DATABASE_URL=mysql://root:root@mysql:3306/symfony
1717
###< doctrine/doctrine-bundle ###
1818

19-
###> blackfire.io secrets ~> replace with yours SECRETS #####
19+
###> blackfire.io secrets - replace with yours SECRETS ###
2020
BLACKFIRE_CLIENT_ID=d29ef9e1-2f41-447c-aa5f-026f7970ead6
2121
BLACKFIRE_CLIENT_TOKEN=e49229d406cc07b0dc4672aadb2d16636c694018ee4e4fd12a85aef0073a46eb
2222
BLACKFIRE_SERVER_ID=0ee01eff-ef1e-4874-9fb5-42e9fed8c66d

0 commit comments

Comments
 (0)