Skip to content

Commit

Permalink
Update statefulset with explicit env
Browse files Browse the repository at this point in the history
SonOfLope authored Dec 7, 2024
1 parent 8dc8752 commit c607455
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions apps/crabe/webApp/base/sql/statefulset.yaml
Original file line number Diff line number Diff line change
@@ -19,13 +19,31 @@ spec:
fsGroup: 1000
containers:
- name: mysql
envfrom:
- secretRef:
name: webapp-crabe-secrets
image: ghcr.io/crabe-etsmtl/crabe-mysql:latest
ports:
- containerPort: 3306
name: mysql
env:
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: webapp-crabe-secrets
key: MYSQL_USER
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: webapp-crabe-secrets
key: MYSQL_PASSWORD
- name: MYSQL_DATABASE
valueFrom:
secretKeyRef:
name: webapp-crabe-secrets
key: MYSQL_DATABASE
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: webapp-crabe-secrets
key: MYSQL_ROOT_PASSWORD
volumeMounts:
- name: mysql-pv-claim
mountPath: /var/lib/mysql

0 comments on commit c607455

Please sign in to comment.