Add quay-kubernetes package / Add quay CD to k8s
This commit is contained in:
parent
2f750bfc87
commit
1d0313229e
45 changed files with 1129 additions and 10 deletions
46
deploy/postgres/templates/postgres-deployment.yaml
Normal file
46
deploy/postgres/templates/postgres-deployment.yaml
Normal file
|
@ -0,0 +1,46 @@
|
|||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: postgres
|
||||
labels:
|
||||
k8s-app: postgres
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
k8s-app: postgres
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
k8s-app: postgres
|
||||
spec:
|
||||
containers:
|
||||
- image: {{image}}
|
||||
name: postgres
|
||||
env:
|
||||
- name: POSTGRES_PASSWORD
|
||||
value: "{{password}}"
|
||||
- name: PGPASSWORD
|
||||
value: "{{password}}"
|
||||
- name: POSTGRES_USER
|
||||
value: "{{user}}"
|
||||
- name: POSTGRES_DB
|
||||
value: "{{dbname}}"
|
||||
- name: PGDATA
|
||||
value: /var/lib/postgresql/data/pgdata
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
name: postgres
|
||||
volumeMounts:
|
||||
- name: postgres-data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
# livenessProbe:
|
||||
# tcpSocket:
|
||||
# port: "postgres"
|
||||
# initialDelaySeconds: 5
|
||||
# timeoutSeconds: 1
|
||||
# readinessProbe:
|
||||
# initialDelaySeconds: 600
|
||||
# exec:
|
||||
# command: ["psql", "-h", "localhost", "-U", "postgres"]
|
||||
volumes: {{data_volumes}}
|
14
deploy/postgres/templates/postgres-service.yaml
Normal file
14
deploy/postgres/templates/postgres-service.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
k8s-app: postgres
|
||||
name: postgres
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 5432
|
||||
name: postgres
|
||||
selector:
|
||||
k8s-app: postgres
|
Reference in a new issue