chore: change to an image which work on M1 Mac

This commit is contained in:
2021-11-20 08:44:50 +01:00
parent 6593687946
commit cee6c1507b
4 changed files with 132 additions and 132 deletions
+25 -25
View File
@@ -22,30 +22,30 @@ spec:
app: postgres
spec:
containers:
- name: postgres
image: postgres:12.0
imagePullPolicy: "IfNotPresent"
resources:
requests:
memory: 200Mi
limits:
memory: 300Mi
ports:
- containerPort: 5432
env:
- name: POSTGRES_DB
value: postgres
- name: POSTGRES_USER
value: postgres
- name: POSTGRES_PASSWORD
value: postgres
volumeMounts:
- name: data
mountPath: /var/lib/postgresql/data
volumes:
- name: postgres
image: postgres:12.0
imagePullPolicy: "IfNotPresent"
resources:
requests:
memory: 200Mi
limits:
memory: 300Mi
ports:
- containerPort: 5432
env:
- name: POSTGRES_DB
value: postgres
- name: POSTGRES_USER
value: postgres
- name: POSTGRES_PASSWORD
value: postgres
volumeMounts:
- name: data
hostPath:
path: /data/postgres
mountPath: /var/lib/postgresql/data
volumes:
- name: data
hostPath:
path: /data/postgres
---
apiVersion: v1
kind: Service
@@ -55,8 +55,8 @@ metadata:
app: postgres
spec:
ports:
- port: 5432
nodePort: 5432
- port: 5432
nodePort: 5432
selector:
app: postgres
type: NodePort