add pg and sonarqube

main
ycz008 2023-12-19 16:41:01 +08:00
parent 307e904d29
commit 0feca527e8
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ spec:
ports:
- containerPort: 5432
volumeMounts:
- name: postgresql_data
- name: postgresql-data
mountPath: /var/lib/postgresql/data
env:
- name: POSTGRES_USER
@ -29,7 +29,7 @@ spec:
- name: POSTGRES_DB
value: "sonar"
volumes:
- name: postgresql_data
- name: postgresql-data
hostPath:
path: /data/sonarqube/postgresql/data
affinity: