cluster.fun/manifests/wallabag/wallabag.yaml

205 lines
5.3 KiB
YAML
Raw Normal View History

2021-09-29 18:12:48 +00:00
apiVersion: v1
2022-05-07 07:09:29 +00:00
kind: Secret
metadata:
name: wallabag
namespace: wallabag
annotations:
kube-1password: 4yogl6yx6t4trrkq7o35tiyj6i
kube-1password/vault: Kubernetes
kube-1password/secret-text-parse: "true"
type: Opaque
---
apiVersion: v1
2021-09-29 18:12:48 +00:00
kind: Service
metadata:
2022-05-07 07:09:29 +00:00
name: wallabag
2021-09-29 18:12:48 +00:00
namespace: wallabag
2022-05-07 07:09:29 +00:00
labels:
app.kubernetes.io/name: wallabag
annotations:
2021-09-29 18:12:48 +00:00
spec:
type: ClusterIP
ports:
2022-05-07 07:09:29 +00:00
- port: 80
targetPort: http
protocol: TCP
name: http
2021-09-29 18:12:48 +00:00
selector:
2022-05-07 07:09:29 +00:00
app.kubernetes.io/name: wallabag
2021-09-29 18:12:48 +00:00
---
2022-05-07 07:59:58 +00:00
apiVersion: batch/v1
kind: Job
metadata:
name: wallabag
namespace: wallabag
labels:
app.kubernetes.io/name: wallabag-init
spec:
2022-05-19 03:12:21 +00:00
suspend: true
2022-05-07 07:59:58 +00:00
template:
metadata:
labels:
app.kubernetes.io/name: wallabag-init
spec:
restartPolicy: OnFailure
containers:
- name: db-init
image: "wallabag/wallabag:latest"
2022-05-07 07:59:58 +00:00
imagePullPolicy: IfNotPresent
envFrom:
- secretRef:
name: wallabag
env:
- name: "SYMFONY__ENV__DATABASE_CHARSET"
value: "utf8"
- name: "SYMFONY__ENV__DATABASE_DRIVER"
value: "pdo_pgsql"
- name: "SYMFONY__ENV__DATABASE_NAME"
value: "wallabag"
- name: "SYMFONY__ENV__DATABASE_TABLE_PREFIX"
value: "wallabag_"
- name: "SYMFONY__ENV__DOMAIN_NAME"
value: "https://wallabag.cluster.fun"
- name: "SYMFONY__ENV__FOSUSER_REGISTRATION"
value: "false"
- name: "SYMFONY__ENV__LOCALE"
value: "en"
- name: "TZ"
value: "UTC"
command:
- /var/www/wallabag/bin/console
- wallabag:install
- --env=prod
2022-05-07 07:59:58 +00:00
- --no-interaction
---
2021-09-29 18:12:48 +00:00
apiVersion: apps/v1
2022-05-07 07:09:29 +00:00
kind: Deployment
2021-09-29 18:12:48 +00:00
metadata:
2022-05-07 07:09:29 +00:00
name: wallabag
2021-09-29 18:12:48 +00:00
namespace: wallabag
2022-05-07 07:09:29 +00:00
labels:
app.kubernetes.io/name: wallabag
2021-09-29 18:12:48 +00:00
spec:
2022-05-07 07:09:29 +00:00
revisionHistoryLimit: 3
2022-05-07 07:19:10 +00:00
replicas: 1
2022-05-07 07:09:29 +00:00
strategy:
type: Recreate
2021-09-29 18:12:48 +00:00
selector:
matchLabels:
2022-05-07 07:09:29 +00:00
app.kubernetes.io/name: wallabag
2021-09-29 18:12:48 +00:00
template:
metadata:
labels:
2022-05-07 07:09:29 +00:00
app.kubernetes.io/name: wallabag
2021-09-29 18:12:48 +00:00
spec:
initContainers:
- name: db-migrate
image: "wallabag/wallabag:2.6.9"
imagePullPolicy: IfNotPresent
command:
- /var/www/wallabag/bin/console
- doctrine:migrations:migrate
- --env=prod
- --no-interaction
envFrom:
- secretRef:
name: wallabag
env:
- name: "SYMFONY__ENV__DATABASE_CHARSET"
value: "utf8"
- name: "SYMFONY__ENV__DATABASE_DRIVER"
value: "pdo_pgsql"
- name: "SYMFONY__ENV__DATABASE_NAME"
value: "wallabag"
- name: "SYMFONY__ENV__DATABASE_TABLE_PREFIX"
value: "wallabag_"
- name: "SYMFONY__ENV__DOMAIN_NAME"
value: "https://wallabag.cluster.fun"
- name: "SYMFONY__ENV__FOSUSER_REGISTRATION"
value: "false"
- name: "SYMFONY__ENV__LOCALE"
value: "en"
- name: "TZ"
value: "UTC"
- name: "POPULATE_DATABASE"
value: "false"
2021-09-29 18:12:48 +00:00
containers:
2022-05-07 07:09:29 +00:00
- name: wallabag
image: "wallabag/wallabag:2.6.9"
2022-05-07 07:09:29 +00:00
imagePullPolicy: IfNotPresent
envFrom:
- secretRef:
name: wallabag
env:
- name: "SYMFONY__ENV__DATABASE_CHARSET"
2022-05-07 07:53:59 +00:00
value: "utf8"
2022-05-07 07:09:29 +00:00
- name: "SYMFONY__ENV__DATABASE_DRIVER"
value: "pdo_pgsql"
- name: "SYMFONY__ENV__DATABASE_NAME"
value: "wallabag"
- name: "SYMFONY__ENV__DATABASE_TABLE_PREFIX"
value: "wallabag_"
- name: "SYMFONY__ENV__DOMAIN_NAME"
value: "https://wallabag.cluster.fun"
- name: "SYMFONY__ENV__FOSUSER_REGISTRATION"
value: "false"
- name: "SYMFONY__ENV__LOCALE"
value: "en"
- name: "TZ"
value: "UTC"
2022-05-12 19:16:29 +00:00
- name: "POPULATE_DATABASE"
value: "false"
2022-05-07 07:09:29 +00:00
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 0
failureThreshold: 3
timeoutSeconds: 1
periodSeconds: 10
readinessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 0
failureThreshold: 3
timeoutSeconds: 1
periodSeconds: 10
startupProbe:
tcpSocket:
port: 80
initialDelaySeconds: 0
failureThreshold: 30
timeoutSeconds: 1
periodSeconds: 5
2021-09-29 18:12:48 +00:00
---
2022-05-07 07:09:29 +00:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: wallabag
namespace: wallabag
labels:
app.kubernetes.io/name: wallabag
annotations:
cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
spec:
tls:
- hosts:
- "wallabag.cluster.fun"
secretName: "wallabag-ingress"
rules:
- host: "wallabag.cluster.fun"
http:
paths:
- path: "/"
pathType: ImplementationSpecific
backend:
service:
name: wallabag
port:
number: 80