chore: change to an image which work on M1 Mac
This commit is contained in:
+25
-25
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user