| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: clientepsql
- namespace: <NS>
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: clientepsql
- template:
- metadata:
- labels:
- app: clientepsql
- spec:
- containers:
- - name: psql
- image: <REGISTRO>/clientepsql:<TAG>
- imagePullPolicy: IfNotPresent
- env:
- - name: DATABASE
- valueFrom:
- configMapKeyRef:
- key: DATABASE
- name: env-prod
- - name: SQL_HOST
- valueFrom:
- configMapKeyRef:
- key: SQL_HOST
- name: env-prod
- - name: SQL_PORT
- valueFrom:
- configMapKeyRef:
- key: SQL_PORT
- name: env-prod
- # La contraseña es mejor con Secret (ver abajo)
- tty: true
- stdin: true
- envFrom:
- - secretRef:
- name: postgres-secret
- imagePullSecrets:
- - name: myregistrykey
|