cluster.fun/manifests/rss/rss.yaml

133 lines
2.9 KiB
YAML
Raw Normal View History

2020-10-19 05:05:48 +00:00
apiVersion: v1
kind: Secret
metadata:
name: rss-auth
namespace: rss
annotations:
kube-1password: mr6spkkx7n3memkbute6ojaarm
kube-1password/vault: Kubernetes
type: Opaque
---
2020-05-07 20:15:38 +00:00
apiVersion: v1
kind: Service
metadata:
2020-10-19 05:05:48 +00:00
name: rss-new
2020-05-07 20:15:38 +00:00
namespace: rss
spec:
type: ClusterIP
ports:
- port: 80
2020-10-19 05:05:48 +00:00
targetPort: 8000
2020-05-07 20:15:38 +00:00
name: web
selector:
app: rss
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: rss
namespace: rss
labels:
app: rss
spec:
replicas: 1
2020-11-28 23:38:50 +00:00
strategy:
type: Recreate
2020-05-07 20:15:38 +00:00
selector:
matchLabels:
app: rss
template:
metadata:
labels:
app: rss
spec:
dnsConfig:
options:
- name: ndots
value: "2"
containers:
2020-10-19 05:05:48 +00:00
- args:
- --cookie-secure=false
- --provider=oidc
- --provider-display-name=Auth0
- --upstream=http://localhost:8080
- --http-address=$(HOST_IP):8000
- --redirect-url=https://rss.cluster.fun/oauth2/callback
- --email-domain=marcusnoble.co.uk
- --pass-basic-auth=false
- --pass-access-token=false
- --oidc-issuer-url=https://marcusnoble.eu.auth0.com/
2022-03-04 09:08:43 +00:00
- --cookie-secret=KDGD6rrK6cBmryyZ4wcJ9xAUNW9AQNFT
- --cookie-expire=336h0m0s
2020-10-19 05:05:48 +00:00
env:
- name: HOST_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: OAUTH2_PROXY_CLIENT_ID
valueFrom:
secretKeyRef:
key: username
name: rss-auth
- name: OAUTH2_PROXY_CLIENT_SECRET
valueFrom:
secretKeyRef:
key: password
name: rss-auth
image: quay.io/oauth2-proxy/oauth2-proxy:v7.5.0
2020-10-19 05:05:48 +00:00
name: oauth-proxy
ports:
- containerPort: 8000
protocol: TCP
resources:
limits:
2021-05-21 10:56:07 +00:00
memory: 50Mi
2020-10-19 05:05:48 +00:00
requests:
2021-05-21 10:56:07 +00:00
memory: 50Mi
2020-05-07 20:15:38 +00:00
- name: web
image: rg.fr-par.scw.cloud/averagemarcus/gopherss:latest
2020-05-07 20:15:38 +00:00
env:
- name: PORT
value: "8080"
2020-10-19 05:05:48 +00:00
- name: DB_PATH
value: /data/feeds.db
2020-05-07 20:15:38 +00:00
ports:
- containerPort: 8080
name: web
volumeMounts:
- mountPath: /data
name: storage
volumes:
- name: storage
persistentVolumeClaim:
2020-10-19 05:05:48 +00:00
claimName: rss-db
2020-05-07 20:15:38 +00:00
---
apiVersion: networking.k8s.io/v1
2020-05-07 20:15:38 +00:00
kind: Ingress
metadata:
name: rss
namespace: rss
annotations:
cert-manager.io/cluster-issuer: letsencrypt
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
2020-05-07 20:15:38 +00:00
spec:
ingressClassName: nginx
2020-05-07 20:15:38 +00:00
tls:
- hosts:
- rss.cluster.fun
secretName: rss-ingress
rules:
- host: rss.cluster.fun
http:
paths:
- path: /
pathType: ImplementationSpecific
2020-05-07 20:15:38 +00:00
backend:
service:
name: rss-new
port:
number: 80
2020-05-07 20:15:38 +00:00
---