Switched outline to deployment
This commit is contained in:
parent
6f74f95997
commit
70e1e2d959
@ -24,40 +24,24 @@ spec:
|
|||||||
app: outline
|
app: outline
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: outline
|
name: outline
|
||||||
namespace: outline
|
namespace: outline
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: outline
|
||||||
spec:
|
spec:
|
||||||
|
revisionHistoryLimit: 3
|
||||||
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: outline
|
app.kubernetes.io/name: outline
|
||||||
serviceName: outline
|
|
||||||
replicas: 1
|
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: outline
|
app.kubernetes.io/name: outline
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
# - name: postgres
|
|
||||||
# image: postgres:9-alpine
|
|
||||||
# imagePullPolicy: IfNotPresent
|
|
||||||
# ports:
|
|
||||||
# - containerPort: 5432
|
|
||||||
# name: db
|
|
||||||
# env:
|
|
||||||
# - name: POSTGRES_USER
|
|
||||||
# value: user
|
|
||||||
# - name: POSTGRES_PASSWORD
|
|
||||||
# value: pass
|
|
||||||
# - name: POSTGRES_DB
|
|
||||||
# value: outline
|
|
||||||
# - name: PGDATA
|
|
||||||
# value: /var/lib/postgresql/data/outline
|
|
||||||
# volumeMounts:
|
|
||||||
# - name: data
|
|
||||||
# mountPath: /var/lib/postgresql/data
|
|
||||||
- name: redis
|
- name: redis
|
||||||
image: redis:6
|
image: redis:6
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
@ -75,8 +59,6 @@ spec:
|
|||||||
yarn db:migrate --env=production-ssl-disabled
|
yarn db:migrate --env=production-ssl-disabled
|
||||||
yarn start
|
yarn start
|
||||||
env:
|
env:
|
||||||
# - name: PGSSLMODE
|
|
||||||
# value: disable
|
|
||||||
- name: ALLOWED_DOMAINS
|
- name: ALLOWED_DOMAINS
|
||||||
value: marcusnoble.co.uk
|
value: marcusnoble.co.uk
|
||||||
- name: OIDC_SCOPES
|
- name: OIDC_SCOPES
|
||||||
@ -84,24 +66,27 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 3000
|
- containerPort: 3000
|
||||||
name: web
|
name: web
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /_health
|
||||||
|
port: web
|
||||||
|
initialDelaySeconds: 10
|
||||||
|
startupProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /_health
|
||||||
|
port: web
|
||||||
|
failureThreshold: 30
|
||||||
|
timeoutSeconds: 1
|
||||||
|
periodSeconds: 5
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /opt/outline/.env
|
- mountPath: /opt/outline/.env
|
||||||
subPath: .env
|
subPath: .env
|
||||||
name: outline-env
|
name: outline-env
|
||||||
readOnly: true
|
readOnly: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: outline-env
|
- name: outline-env
|
||||||
secret:
|
secret:
|
||||||
secretName: outline
|
secretName: outline
|
||||||
volumeClaimTemplates:
|
|
||||||
- metadata:
|
|
||||||
name: data
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 5Gi
|
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
|
Loading…
Reference in New Issue
Block a user