Pruebas con queue ! intento de configuracion de ssl tambien
This commit is contained in:
8
deploy/postgres/postgres-configmap.yaml
Normal file
8
deploy/postgres/postgres-configmap.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: postgres-configmap
|
||||
data:
|
||||
POSTGRES_DB: laravel
|
||||
POSTGRES_USER: postgres
|
||||
PGDATA: /var/lib/postgresql/data/pgdata
|
||||
7
deploy/postgres/postgres-secret.yaml
Normal file
7
deploy/postgres/postgres-secret.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: postgres-secret
|
||||
type: Opaque
|
||||
stringData:
|
||||
POSTGRES_PASSWORD: l#Scim@HiebS3U
|
||||
12
deploy/postgres/postgres-service.yaml
Normal file
12
deploy/postgres/postgres-service.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: postgres-service
|
||||
spec:
|
||||
selector:
|
||||
app: postgres
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 5432
|
||||
targetPort: 5432
|
||||
|
||||
36
deploy/postgres/postgres-statefulset.yaml
Normal file
36
deploy/postgres/postgres-statefulset.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: postgres
|
||||
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: postgres
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: postgres
|
||||
spec:
|
||||
containers:
|
||||
- name: postgres
|
||||
image: postgres:latest
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: postgres-configmap
|
||||
- secretRef:
|
||||
name: postgres-secret
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/postgresql/data
|
||||
name: postgres-data
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: postgres-data
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
storageClassName: longhorn
|
||||
Reference in New Issue
Block a user