cluster.fun/manifests/outline/outline.yaml

107 lines
2.3 KiB
YAML
Raw Normal View History

2021-09-11 08:56:37 +00:00
apiVersion: v1
kind: Secret
metadata:
name: outline
namespace: outline
annotations:
kube-1password: maouivotrbgydslnsukbjrwgja
kube-1password/vault: Kubernetes
kube-1password/secret-text-key: .env
type: Opaque
---
apiVersion: v1
kind: Service
metadata:
name: outline
namespace: outline
spec:
type: ClusterIP
ports:
- port: 80
targetPort: web
name: web
selector:
2022-05-07 09:08:41 +00:00
app.kubernetes.io/name: outline
2021-09-11 08:56:37 +00:00
---
apiVersion: apps/v1
2022-05-07 09:03:49 +00:00
kind: Deployment
2021-09-11 08:56:37 +00:00
metadata:
name: outline
namespace: outline
2022-05-07 09:03:49 +00:00
labels:
app.kubernetes.io/name: outline
annotations:
secret.reloader.stakater.com/reload: "outline"
2021-09-11 08:56:37 +00:00
spec:
2022-05-07 09:03:49 +00:00
revisionHistoryLimit: 3
replicas: 1
2021-09-11 08:56:37 +00:00
selector:
matchLabels:
2022-05-07 09:03:49 +00:00
app.kubernetes.io/name: outline
2021-09-11 08:56:37 +00:00
template:
metadata:
labels:
2022-05-07 09:03:49 +00:00
app.kubernetes.io/name: outline
2021-09-11 08:56:37 +00:00
spec:
containers:
- name: outline
image: outlinewiki/outline:0.78.0
2021-09-11 16:31:41 +00:00
imagePullPolicy: IfNotPresent
2021-09-11 08:56:37 +00:00
env:
- name: ALLOWED_DOMAINS
value: marcusnoble.co.uk,namelessplanet.com,paradoxfox.shop
- name: OIDC_SCOPES
value: "openid profile email"
- name: PGSSLMODE
value: "disable"
2021-09-11 08:56:37 +00:00
ports:
- containerPort: 3000
name: web
2022-05-07 09:03:49 +00:00
livenessProbe:
httpGet:
path: /_health
port: web
initialDelaySeconds: 10
startupProbe:
httpGet:
path: /_health
port: web
failureThreshold: 30
timeoutSeconds: 1
periodSeconds: 5
2021-09-11 08:56:37 +00:00
volumeMounts:
- mountPath: /opt/outline/.env
subPath: .env
name: outline-env
readOnly: true
2022-05-07 09:04:37 +00:00
volumes:
- name: outline-env
secret:
secretName: outline
2021-09-11 08:56:37 +00:00
---
apiVersion: networking.k8s.io/v1
2021-09-11 08:56:37 +00:00
kind: Ingress
metadata:
name: outline
namespace: outline
annotations:
cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
2021-09-11 08:56:37 +00:00
spec:
ingressClassName: nginx
2021-09-11 08:56:37 +00:00
tls:
- hosts:
- outline.cluster.fun
secretName: outline-ingress
rules:
- host: outline.cluster.fun
http:
paths:
- path: /
pathType: ImplementationSpecific
2021-09-11 08:56:37 +00:00
backend:
service:
name: outline
port:
number: 80