Switched calendso to deployment

This commit is contained in:
Marcus Noble 2022-05-07 09:54:14 +00:00
parent 5ee727cd54
commit 0d2d2b4a94

View File

@ -34,23 +34,25 @@ spec:
targetPort: web targetPort: web
name: web name: web
selector: selector:
app: calendso app.kubernetes.io/name: calendso
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: StatefulSet kind: Deployment
metadata: metadata:
name: calendso name: calendso
namespace: calendso namespace: calendso
labels:
app.kubernetes.io/name: calendso
spec: spec:
revisionHistoryLimit: 3
replicas: 1 replicas: 1
serviceName: calendso
selector: selector:
matchLabels: matchLabels:
app: calendso app.kubernetes.io/name: calendso
template: template:
metadata: metadata:
labels: labels:
app: calendso app.kubernetes.io/name: calendso
spec: spec:
imagePullSecrets: imagePullSecrets:
- name: docker-config - name: docker-config
@ -69,50 +71,13 @@ spec:
value: production value: production
- name: POSTGRES_DB - name: POSTGRES_DB
value: calendso value: calendso
- name: DATABASE_HOST
value: localhost:5432
envFrom: envFrom:
- secretRef: - secretRef:
name: calendso name: calendso
ports: ports:
- containerPort: 3000 - containerPort: 3000
name: web name: web
# - name: postgres
# image: postgres:9-alpine
# imagePullPolicy: IfNotPresent
# ports:
# - containerPort: 5432
# name: db
# env:
# - name: POSTGRES_USER
# valueFrom:
# secretKeyRef:
# name: calendso
# key: POSTGRES_USER
# - name: POSTGRES_PASSWORD
# valueFrom:
# secretKeyRef:
# name: calendso
# key: POSTGRES_PASSWORD
# - name: POSTGRES_DB
# value: calendso
# - name: PGDATA
# value: /var/lib/postgresql/data/calendso
# volumeMounts:
# - name: data
# mountPath: /var/lib/postgresql/data
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
--- ---
apiVersion: networking.k8s.io/v1 apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata: