Compare commits
45 Commits
increase_c
...
cef5f2ddc1
Author | SHA1 | Date | |
---|---|---|---|
cef5f2ddc1 | |||
825447b712 | |||
5c06e4c8d7 | |||
34a00954db | |||
54af3af2c1 | |||
7405481b72 | |||
fa51de4fb6 | |||
d29c9ec82c | |||
5f8800f311 | |||
eef0a6c22d | |||
d9d71a5dc7 | |||
ff99e577cd | |||
f26d02ca7f | |||
94e18c12ea | |||
84a9c19d93 | |||
8f85a65cbe | |||
22ae249a1f | |||
50f86cc39f | |||
295bb89828 | |||
3ab7377253 | |||
7d2c192b95 | |||
a7a29c0201 | |||
c40c5b5a33 | |||
588348ac31 | |||
05e04afeff | |||
cf2a889e4d | |||
b838af199d | |||
9f65bf256a | |||
f5a7bb5abb | |||
5567ba142a | |||
43aa708e09 | |||
52339ccbed | |||
b08f0892be | |||
b60c244b8b | |||
fd26f7b3de | |||
e00db9e633 | |||
b35b34bb7a | |||
85bd64e87e | |||
a80346f8e7 | |||
53d8bd48bf | |||
9c8f29e346 | |||
ad3fab4cfd | |||
cf0015d1e2 | |||
6ce5744672 | |||
3d47bc34da |
85
manifests/11-year-anniversary.yaml
Normal file
85
manifests/11-year-anniversary.yaml
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: anniversary
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: docker-config
|
||||||
|
namespace: anniversary
|
||||||
|
annotations:
|
||||||
|
kube-1password: i6ngbk5zf4k52xgwdwnfup5bby
|
||||||
|
kube-1password/vault: Kubernetes
|
||||||
|
kube-1password/secret-text-key: .dockerconfigjson
|
||||||
|
type: kubernetes.io/dockerconfigjson
|
||||||
|
data:
|
||||||
|
.dockerconfigjson: e30=
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: anniversary
|
||||||
|
namespace: anniversary
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: web
|
||||||
|
name: web
|
||||||
|
selector:
|
||||||
|
app: anniversary
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: anniversary
|
||||||
|
namespace: anniversary
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: anniversary
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: anniversary
|
||||||
|
spec:
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: docker-config
|
||||||
|
containers:
|
||||||
|
- name: web
|
||||||
|
image: docker.cluster.fun/private/11-year-anniversary:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
name: web
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 283Mi
|
||||||
|
requests:
|
||||||
|
memory: 283Mi
|
||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: anniversary
|
||||||
|
namespace: anniversary
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- 11-year-anniversary.marcusnoble.co.uk
|
||||||
|
secretName: anniversary-ingress
|
||||||
|
rules:
|
||||||
|
- host: 11-year-anniversary.marcusnoble.co.uk
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: anniversary
|
||||||
|
servicePort: 80
|
83
manifests/auth-proxy.yaml
Normal file
83
manifests/auth-proxy.yaml
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: auth-proxy
|
||||||
|
namespace: inlets
|
||||||
|
annotations:
|
||||||
|
kube-1password: mr6spkkx7n3memkbute6ojaarm
|
||||||
|
kube-1password/vault: Kubernetes
|
||||||
|
type: Opaque
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: auth-proxy
|
||||||
|
namespace: inlets
|
||||||
|
labels:
|
||||||
|
app: auth-proxy
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: auth-proxy
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: auth-proxy
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- args:
|
||||||
|
- --cookie-secure=false
|
||||||
|
- --provider=oidc
|
||||||
|
- --provider-display-name=Auth0
|
||||||
|
- --upstream=http://inlets.inlets.svc.cluster.local
|
||||||
|
- --http-address=$(HOST_IP):8080
|
||||||
|
- --email-domain=*
|
||||||
|
- --pass-basic-auth=false
|
||||||
|
- --pass-access-token=false
|
||||||
|
- --oidc-issuer-url=https://marcusnoble.eu.auth0.com/
|
||||||
|
- --cookie-secret=KDGD6rrK6cBmryyZ4wcJ9xAUNW9AQNFT
|
||||||
|
- --cookie-expire=336h0m0s
|
||||||
|
env:
|
||||||
|
- name: HOST_IP
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
apiVersion: v1
|
||||||
|
fieldPath: status.podIP
|
||||||
|
- name: OAUTH2_PROXY_CLIENT_ID
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
key: username
|
||||||
|
name: auth-proxy
|
||||||
|
- name: OAUTH2_PROXY_CLIENT_SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
key: password
|
||||||
|
name: auth-proxy
|
||||||
|
image: quay.io/oauth2-proxy/oauth2-proxy:v6.1.1
|
||||||
|
name: oauth-proxy
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
protocol: TCP
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 50Mi
|
||||||
|
requests:
|
||||||
|
memory: 50Mi
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: auth-proxy
|
||||||
|
namespace: inlets
|
||||||
|
labels:
|
||||||
|
app: auth-proxy
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 8080
|
||||||
|
selector:
|
||||||
|
app: auth-proxy
|
||||||
|
type: ClusterIP
|
72
manifests/base64.yaml
Normal file
72
manifests/base64.yaml
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: base64
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: base64
|
||||||
|
namespace: base64
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: web
|
||||||
|
name: web
|
||||||
|
selector:
|
||||||
|
app: base64
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: base64
|
||||||
|
namespace: base64
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: base64
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: base64
|
||||||
|
spec:
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: docker-config
|
||||||
|
containers:
|
||||||
|
- name: web
|
||||||
|
image: docker.cluster.fun/averagemarcus/base64:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
name: web
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 10Mi
|
||||||
|
requests:
|
||||||
|
memory: 10Mi
|
||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: base64
|
||||||
|
namespace: base64
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- base64.cluster.fun
|
||||||
|
secretName: base64-ingress
|
||||||
|
rules:
|
||||||
|
- host: base64.cluster.fun
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: base64
|
||||||
|
servicePort: 80
|
@@ -1,97 +1,8 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: cctv
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: cctv-auth
|
|
||||||
namespace: cctv
|
|
||||||
annotations:
|
|
||||||
kube-1password: mr6spkkx7n3memkbute6ojaarm
|
|
||||||
kube-1password/vault: Kubernetes
|
|
||||||
type: Opaque
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: cctv-auth
|
|
||||||
namespace: cctv
|
|
||||||
labels:
|
|
||||||
app: cctv-auth
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: cctv-auth
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: cctv-auth
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- args:
|
|
||||||
- --cookie-secure=false
|
|
||||||
- --provider=oidc
|
|
||||||
- --provider-display-name=Auth0
|
|
||||||
- --upstream=http://inlets.inlets.svc.cluster.local
|
|
||||||
- --http-address=$(HOST_IP):8080
|
|
||||||
- --redirect-url=https://cctv.cluster.fun/oauth2/callback
|
|
||||||
- --email-domain=*
|
|
||||||
- --pass-basic-auth=false
|
|
||||||
- --pass-access-token=false
|
|
||||||
- --oidc-issuer-url=https://marcusnoble.eu.auth0.com/
|
|
||||||
- --cookie-secret=KDGD6rrK6cBmryyZ4wcJ9xAUNW9AQN
|
|
||||||
env:
|
|
||||||
- name: HOST_IP
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
apiVersion: v1
|
|
||||||
fieldPath: status.podIP
|
|
||||||
- name: OAUTH2_PROXY_CLIENT_ID
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: username
|
|
||||||
name: cctv-auth
|
|
||||||
- name: OAUTH2_PROXY_CLIENT_SECRET
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: password
|
|
||||||
name: cctv-auth
|
|
||||||
image: quay.io/oauth2-proxy/oauth2-proxy:v5.1.1
|
|
||||||
name: oauth-proxy
|
|
||||||
ports:
|
|
||||||
- containerPort: 8080
|
|
||||||
protocol: TCP
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
memory: 50Mi
|
|
||||||
requests:
|
|
||||||
memory: 50Mi
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: cctv-auth
|
|
||||||
namespace: cctv
|
|
||||||
labels:
|
|
||||||
app: cctv-auth
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 8080
|
|
||||||
selector:
|
|
||||||
app: cctv-auth
|
|
||||||
type: ClusterIP
|
|
||||||
---
|
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: cctv-auth
|
name: cctv-auth
|
||||||
namespace: cctv
|
namespace: inlets
|
||||||
labels:
|
labels:
|
||||||
app: cctv-auth
|
app: cctv-auth
|
||||||
annotations:
|
annotations:
|
||||||
@@ -110,5 +21,5 @@ spec:
|
|||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
backend:
|
backend:
|
||||||
serviceName: cctv-auth
|
serviceName: auth-proxy
|
||||||
servicePort: 80
|
servicePort: 80
|
||||||
|
@@ -1,97 +1,8 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: downloads
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: downloads-auth
|
|
||||||
namespace: downloads
|
|
||||||
annotations:
|
|
||||||
kube-1password: mr6spkkx7n3memkbute6ojaarm
|
|
||||||
kube-1password/vault: Kubernetes
|
|
||||||
type: Opaque
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: downloads-auth
|
|
||||||
namespace: downloads
|
|
||||||
labels:
|
|
||||||
app: downloads-auth
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: downloads-auth
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: downloads-auth
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- args:
|
|
||||||
- --cookie-secure=false
|
|
||||||
- --provider=oidc
|
|
||||||
- --provider-display-name=Auth0
|
|
||||||
- --upstream=http://inlets.inlets.svc.cluster.local
|
|
||||||
- --http-address=$(HOST_IP):8080
|
|
||||||
- --redirect-url=https://downloads.cluster.fun/oauth2/callback
|
|
||||||
- --email-domain=*
|
|
||||||
- --pass-basic-auth=false
|
|
||||||
- --pass-access-token=false
|
|
||||||
- --oidc-issuer-url=https://marcusnoble.eu.auth0.com/
|
|
||||||
- --cookie-secret=KDGD6rrK6cBmryyZ4wcJ9xAUNW9AQN
|
|
||||||
env:
|
|
||||||
- name: HOST_IP
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
apiVersion: v1
|
|
||||||
fieldPath: status.podIP
|
|
||||||
- name: OAUTH2_PROXY_CLIENT_ID
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: username
|
|
||||||
name: downloads-auth
|
|
||||||
- name: OAUTH2_PROXY_CLIENT_SECRET
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
key: password
|
|
||||||
name: downloads-auth
|
|
||||||
image: quay.io/oauth2-proxy/oauth2-proxy:v5.1.1
|
|
||||||
name: oauth-proxy
|
|
||||||
ports:
|
|
||||||
- containerPort: 8080
|
|
||||||
protocol: TCP
|
|
||||||
resources:
|
|
||||||
limits:
|
|
||||||
memory: 250Mi
|
|
||||||
requests:
|
|
||||||
memory: 250Mi
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: downloads-auth
|
|
||||||
namespace: downloads
|
|
||||||
labels:
|
|
||||||
app: downloads-auth
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
protocol: TCP
|
|
||||||
targetPort: 8080
|
|
||||||
selector:
|
|
||||||
app: downloads-auth
|
|
||||||
type: ClusterIP
|
|
||||||
---
|
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: downloads-auth
|
name: downloads-auth
|
||||||
namespace: downloads
|
namespace: inlets
|
||||||
labels:
|
labels:
|
||||||
app: downloads-auth
|
app: downloads-auth
|
||||||
annotations:
|
annotations:
|
||||||
@@ -110,6 +21,5 @@ spec:
|
|||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
backend:
|
backend:
|
||||||
serviceName: downloads-auth
|
serviceName: auth-proxy
|
||||||
servicePort: 80
|
servicePort: 80
|
||||||
|
|
||||||
|
94
manifests/git-sync.yaml
Normal file
94
manifests/git-sync.yaml
Normal file
@@ -0,0 +1,94 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: git-sync
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: git-sync-github
|
||||||
|
namespace: git-sync
|
||||||
|
annotations:
|
||||||
|
kube-1password: cfo2ufhgem57clbscxetxgevue
|
||||||
|
kube-1password/vault: Kubernetes
|
||||||
|
kube-1password/password-key: token
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: git-sync-gitea
|
||||||
|
namespace: git-sync
|
||||||
|
annotations:
|
||||||
|
kube-1password: b7kpdlcvt7y63bozu3i4j4lojm
|
||||||
|
kube-1password/vault: Kubernetes
|
||||||
|
kube-1password/password-key: token
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: git-sync-gitlab
|
||||||
|
namespace: git-sync
|
||||||
|
annotations:
|
||||||
|
kube-1password: t47v3xdgadiifgoi4wmqibrlty
|
||||||
|
kube-1password/vault: Kubernetes
|
||||||
|
kube-1password/password-key: token
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: git-sync-bitbucket
|
||||||
|
namespace: git-sync
|
||||||
|
annotations:
|
||||||
|
kube-1password: adrki45krr2tq34sug7dhdk5iy
|
||||||
|
kube-1password/vault: Kubernetes
|
||||||
|
kube-1password/password-key: token
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
---
|
||||||
|
apiVersion: batch/v1beta1
|
||||||
|
kind: CronJob
|
||||||
|
metadata:
|
||||||
|
name: git-sync
|
||||||
|
namespace: git-sync
|
||||||
|
spec:
|
||||||
|
schedule: "0 */1 * * *"
|
||||||
|
concurrencyPolicy: Forbid
|
||||||
|
failedJobsHistoryLimit: 1
|
||||||
|
successfulJobsHistoryLimit: 1
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
backoffLimit: 1
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: sync
|
||||||
|
image: docker.cluster.fun/averagemarcus/git-sync:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: GITHUB_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: git-sync-github
|
||||||
|
key: token
|
||||||
|
- name: GITEA_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: git-sync-gitea
|
||||||
|
key: token
|
||||||
|
- name: GITLAB_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: git-sync-gitlab
|
||||||
|
key: token
|
||||||
|
- name: BITBUCKET_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: git-sync-bitbucket
|
||||||
|
key: token
|
||||||
|
restartPolicy: Never
|
@@ -47,7 +47,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: git
|
- name: git
|
||||||
image: gitea/gitea:1.11
|
image: gitea/gitea:1.12.3
|
||||||
env:
|
env:
|
||||||
- name: APP_NAME
|
- name: APP_NAME
|
||||||
value: "Git"
|
value: "Git"
|
||||||
|
66
manifests/goplayground.yaml
Normal file
66
manifests/goplayground.yaml
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: goplayground
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: goplayground
|
||||||
|
namespace: goplayground
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: web
|
||||||
|
name: web
|
||||||
|
selector:
|
||||||
|
app: goplayground
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: goplayground
|
||||||
|
namespace: goplayground
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: goplayground
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: goplayground
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: web
|
||||||
|
image: x1unix/go-playground:1.6.2
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
name: web
|
||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: goplayground
|
||||||
|
namespace: goplayground
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- go.cluster.fun
|
||||||
|
secretName: goplayground-ingress
|
||||||
|
rules:
|
||||||
|
- host: go.cluster.fun
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: goplayground
|
||||||
|
servicePort: 80
|
||||||
|
|
@@ -23,7 +23,7 @@ spec:
|
|||||||
chart:
|
chart:
|
||||||
repository: https://helm.goharbor.io
|
repository: https://helm.goharbor.io
|
||||||
name: harbor
|
name: harbor
|
||||||
version: 1.3.2
|
version: 1.5.1
|
||||||
maxHistory: 4
|
maxHistory: 4
|
||||||
skipCRDs: false
|
skipCRDs: false
|
||||||
valuesFrom:
|
valuesFrom:
|
||||||
@@ -33,6 +33,8 @@ spec:
|
|||||||
key: values.yaml
|
key: values.yaml
|
||||||
optional: false
|
optional: false
|
||||||
values:
|
values:
|
||||||
|
updateStrategy:
|
||||||
|
type: Recreate
|
||||||
portal:
|
portal:
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
@@ -54,4 +56,3 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 64Mi
|
memory: 64Mi
|
||||||
|
|
||||||
|
@@ -49,7 +49,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: inlets
|
- name: inlets
|
||||||
image: inlets/inlets:2.7.0
|
image: inlets/inlets:2.7.6
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
command: ["inlets"]
|
command: ["inlets"]
|
||||||
args:
|
args:
|
||||||
@@ -81,7 +81,7 @@ spec:
|
|||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: pyload
|
name: home-assistant
|
||||||
namespace: inlets
|
namespace: inlets
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
@@ -91,10 +91,50 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- pyload.cluster.fun
|
- home.cluster.fun
|
||||||
secretName: pyload-ingress
|
secretName: home-assistant-ingress
|
||||||
rules:
|
rules:
|
||||||
- host: pyload.cluster.fun
|
- host: home.cluster.fun
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: inlets
|
||||||
|
servicePort: 80
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: downloads-rpc
|
||||||
|
namespace: inlets
|
||||||
|
labels:
|
||||||
|
app: inlets
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 8000
|
||||||
|
selector:
|
||||||
|
app: inlets
|
||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: vpn-check
|
||||||
|
namespace: inlets
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- vpn-check.cluster.fun
|
||||||
|
secretName: vpn-check-ingress
|
||||||
|
rules:
|
||||||
|
- host: vpn-check.cluster.fun
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
25
manifests/jackett.yaml
Normal file
25
manifests/jackett.yaml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: jackett-auth
|
||||||
|
namespace: inlets
|
||||||
|
labels:
|
||||||
|
app: jackett-auth
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- jackett.cluster.fun
|
||||||
|
secretName: jackett-ingress
|
||||||
|
rules:
|
||||||
|
- host: jackett.cluster.fun
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: auth-proxy
|
||||||
|
servicePort: 80
|
@@ -88,7 +88,7 @@ spec:
|
|||||||
- --interval=15
|
- --interval=15
|
||||||
- --rules-file=/config/rules.yaml
|
- --rules-file=/config/rules.yaml
|
||||||
- --include-namespaces=tekton-pipelines
|
- --include-namespaces=tekton-pipelines
|
||||||
- --include-resources=pods
|
- --include-resources=pods,pipelineruns,taskruns
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
memory: 100Mi
|
memory: 100Mi
|
||||||
|
@@ -62,7 +62,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: web
|
- name: web
|
||||||
image: andreimarcu/linx-server:version-2.3.5
|
image: andreimarcu/linx-server:version-2.3.6
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
args:
|
args:
|
||||||
- -config
|
- -config
|
||||||
|
@@ -13,6 +13,17 @@ metadata:
|
|||||||
kube-1password/vault: Kubernetes
|
kube-1password/vault: Kubernetes
|
||||||
type: Opaque
|
type: Opaque
|
||||||
---
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: loki-values
|
||||||
|
namespace: logging
|
||||||
|
annotations:
|
||||||
|
kube-1password: 6u6ebtofcxbr5r4q7k5wkc5zea
|
||||||
|
kube-1password/vault: Kubernetes
|
||||||
|
kube-1password/secret-text-key: values.yaml
|
||||||
|
type: Opaque
|
||||||
|
---
|
||||||
apiVersion: helm.fluxcd.io/v1
|
apiVersion: helm.fluxcd.io/v1
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
@@ -22,18 +33,21 @@ spec:
|
|||||||
chart:
|
chart:
|
||||||
repository: https://grafana.github.io/loki/charts
|
repository: https://grafana.github.io/loki/charts
|
||||||
name: loki-stack
|
name: loki-stack
|
||||||
version: 0.36.2
|
version: 2.0.2
|
||||||
maxHistory: 4
|
maxHistory: 4
|
||||||
skipCRDs: false
|
skipCRDs: false
|
||||||
|
valuesFrom:
|
||||||
|
- secretKeyRef:
|
||||||
|
name: loki-values
|
||||||
|
namespace: logging
|
||||||
|
key: values.yaml
|
||||||
|
optional: false
|
||||||
values:
|
values:
|
||||||
fluent-bit:
|
fluent-bit:
|
||||||
enabled: "true"
|
enabled: "true"
|
||||||
promtail:
|
promtail:
|
||||||
enabled: "true"
|
enabled: "true"
|
||||||
loki:
|
|
||||||
persistence:
|
|
||||||
enabled: "true"
|
|
||||||
size: 10Gi
|
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: helm.fluxcd.io/v1
|
apiVersion: helm.fluxcd.io/v1
|
||||||
@@ -43,20 +57,16 @@ metadata:
|
|||||||
namespace: logging
|
namespace: logging
|
||||||
spec:
|
spec:
|
||||||
chart:
|
chart:
|
||||||
repository: https://kubernetes-charts.storage.googleapis.com
|
repository: https://grafana.github.io/helm-charts
|
||||||
name: grafana
|
name: grafana
|
||||||
version: 5.0.22
|
version: 6.1.3
|
||||||
maxHistory: 4
|
maxHistory: 4
|
||||||
skipCRDs: false
|
skipCRDs: false
|
||||||
values:
|
values:
|
||||||
image:
|
|
||||||
tag: 7.0.0
|
|
||||||
admin:
|
admin:
|
||||||
existingSecret: "grafana-credentials"
|
existingSecret: "grafana-credentials"
|
||||||
userKey: username
|
userKey: username
|
||||||
passwordKey: password
|
passwordKey: password
|
||||||
persistence:
|
|
||||||
enabled: "false"
|
|
||||||
datasources:
|
datasources:
|
||||||
datasources.yaml:
|
datasources.yaml:
|
||||||
apiVersion: 1
|
apiVersion: 1
|
||||||
|
@@ -74,7 +74,7 @@ spec:
|
|||||||
synapse:
|
synapse:
|
||||||
image:
|
image:
|
||||||
repository: "matrixdotorg/synapse"
|
repository: "matrixdotorg/synapse"
|
||||||
tag: v1.12.4
|
tag: v1.16.1
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@@ -111,7 +111,7 @@ spec:
|
|||||||
permalinkPrefix: "https://chat.cluster.fun"
|
permalinkPrefix: "https://chat.cluster.fun"
|
||||||
image:
|
image:
|
||||||
repository: "vectorim/riot-web"
|
repository: "vectorim/riot-web"
|
||||||
tag: v1.6.0
|
tag: v1.6.8
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
@@ -25,7 +25,7 @@ spec:
|
|||||||
chart:
|
chart:
|
||||||
repository: https://kubernetes-charts.storage.googleapis.com
|
repository: https://kubernetes-charts.storage.googleapis.com
|
||||||
name: nextcloud
|
name: nextcloud
|
||||||
version: 1.10.0
|
version: 1.12.0
|
||||||
maxHistory: 5
|
maxHistory: 5
|
||||||
valuesFrom:
|
valuesFrom:
|
||||||
- secretKeyRef:
|
- secretKeyRef:
|
||||||
@@ -35,7 +35,7 @@ spec:
|
|||||||
optional: false
|
optional: false
|
||||||
values:
|
values:
|
||||||
image:
|
image:
|
||||||
tag: 18-apache
|
tag: 19-apache
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
annotations:
|
annotations:
|
||||||
|
@@ -73,7 +73,7 @@ spec:
|
|||||||
mountPath: /data
|
mountPath: /data
|
||||||
containers:
|
containers:
|
||||||
- name: web
|
- name: web
|
||||||
image: nodered/node-red:latest-12
|
image: nodered/node-red:1.1.3-12
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 1880
|
- containerPort: 1880
|
||||||
|
124
manifests/outline.yaml
Normal file
124
manifests/outline.yaml
Normal file
@@ -0,0 +1,124 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: outline
|
||||||
|
---
|
||||||
|
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:
|
||||||
|
app: outline
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: StatefulSet
|
||||||
|
metadata:
|
||||||
|
name: outline
|
||||||
|
namespace: outline
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: outline
|
||||||
|
serviceName: outline
|
||||||
|
replicas: 1
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: outline
|
||||||
|
spec:
|
||||||
|
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
|
||||||
|
image: redis:6
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
ports:
|
||||||
|
- containerPort: 6379
|
||||||
|
name: redis
|
||||||
|
- name: outline
|
||||||
|
image: docker.cluster.fun/averagemarcus/outline:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
sleep 10 && yarn sequelize db:migrate && yarn build && yarn start
|
||||||
|
ports:
|
||||||
|
- containerPort: 3000
|
||||||
|
name: web
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /opt/outline/.env
|
||||||
|
subPath: .env
|
||||||
|
name: outline-env
|
||||||
|
readOnly: true
|
||||||
|
volumes:
|
||||||
|
- name: outline-env
|
||||||
|
secret:
|
||||||
|
secretName: outline
|
||||||
|
volumeClaimTemplates:
|
||||||
|
- metadata:
|
||||||
|
name: data
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: outline
|
||||||
|
namespace: outline
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- outline.cluster.fun
|
||||||
|
secretName: outline-ingress
|
||||||
|
rules:
|
||||||
|
- host: outline.cluster.fun
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: outline
|
||||||
|
servicePort: 80
|
128
manifests/paradoxfox.yaml
Normal file
128
manifests/paradoxfox.yaml
Normal file
@@ -0,0 +1,128 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: paradoxfox
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: docker-config
|
||||||
|
namespace: paradoxfox
|
||||||
|
annotations:
|
||||||
|
kube-1password: i6ngbk5zf4k52xgwdwnfup5bby
|
||||||
|
kube-1password/vault: Kubernetes
|
||||||
|
kube-1password/secret-text-key: .dockerconfigjson
|
||||||
|
type: kubernetes.io/dockerconfigjson
|
||||||
|
data:
|
||||||
|
.dockerconfigjson: e30=
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: etsy-token
|
||||||
|
namespace: paradoxfox
|
||||||
|
annotations:
|
||||||
|
kube-1password: akkchysgrvhawconx63plt3xgy
|
||||||
|
kube-1password/vault: Kubernetes
|
||||||
|
kube-1password/secret-text-key: password
|
||||||
|
stringData:
|
||||||
|
password: ""
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: paradoxfox
|
||||||
|
namespace: paradoxfox
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 443
|
||||||
|
name: web
|
||||||
|
selector:
|
||||||
|
app: paradoxfox
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: paradoxfox
|
||||||
|
namespace: paradoxfox
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: paradoxfox
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: paradoxfox
|
||||||
|
spec:
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: docker-config
|
||||||
|
containers:
|
||||||
|
- name: web
|
||||||
|
image: docker.cluster.fun/private/paradoxfox:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 443
|
||||||
|
name: web
|
||||||
|
env:
|
||||||
|
- name: ETSY_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: etsy-token
|
||||||
|
key: password
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 200Mi
|
||||||
|
requests:
|
||||||
|
memory: 200Mi
|
||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: paradoxfox
|
||||||
|
namespace: paradoxfox
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- paradoxfox.space
|
||||||
|
secretName: paradoxfox-ingress
|
||||||
|
rules:
|
||||||
|
- host: paradoxfox.space
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: paradoxfox
|
||||||
|
servicePort: 80
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: paradoxfox-www
|
||||||
|
namespace: paradoxfox
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- www.paradoxfox.space
|
||||||
|
secretName: paradoxfox-www-ingress
|
||||||
|
rules:
|
||||||
|
- host: www.paradoxfox.space
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: paradoxfox
|
||||||
|
servicePort: 80
|
163
manifests/photoprism_chart.yaml
Normal file
163
manifests/photoprism_chart.yaml
Normal file
@@ -0,0 +1,163 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: photoprism
|
||||||
|
---
|
||||||
|
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: photoprism-storage
|
||||||
|
namespace: photoprism
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 20Gi
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: helm.fluxcd.io/v1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: photoprism
|
||||||
|
namespace: photoprism
|
||||||
|
spec:
|
||||||
|
chart:
|
||||||
|
repository: https://p80n.github.io/photoprism-helm/
|
||||||
|
name: photoprism
|
||||||
|
version: 1.0.0
|
||||||
|
maxHistory: 5
|
||||||
|
values:
|
||||||
|
image:
|
||||||
|
tag: "20200729"
|
||||||
|
config:
|
||||||
|
PHOTOPRISM_DEBUG: false
|
||||||
|
PHOTOPRISM_PUBLIC: true
|
||||||
|
PHOTOPRISM_READONLY: true
|
||||||
|
PHOTOPRISM_SITE_URL: https://photos.cluster.fun
|
||||||
|
PHOTOPRISM_SITE_TITLE: Photos
|
||||||
|
PHOTOPRISM_SITE_CAPTION: ""
|
||||||
|
persistence:
|
||||||
|
enabled: true
|
||||||
|
cachePath: /data/cache
|
||||||
|
originalsPath: /data/originals
|
||||||
|
storagePath: /data/storage
|
||||||
|
volumeMounts:
|
||||||
|
- name: storage
|
||||||
|
mountPath: /data
|
||||||
|
volumes:
|
||||||
|
- name: storage
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: photoprism-storage
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 500Mi
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: photoprism-auth
|
||||||
|
namespace: photoprism
|
||||||
|
labels:
|
||||||
|
app: photoprism-auth
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: photoprism-auth
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: photoprism-auth
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- args:
|
||||||
|
- --cookie-secure=false
|
||||||
|
- --provider=oidc
|
||||||
|
- --provider-display-name=Auth0
|
||||||
|
- --upstream=http://photoprism-photoprism.photoprism.svc.cluster.local
|
||||||
|
- --http-address=$(HOST_IP):8080
|
||||||
|
- --redirect-url=https://photos.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/
|
||||||
|
- --cookie-secret=KDGD6rrK6cBmryyZ4wcJ9xAUNW9AQN
|
||||||
|
env:
|
||||||
|
- name: HOST_IP
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
apiVersion: v1
|
||||||
|
fieldPath: status.podIP
|
||||||
|
- name: OAUTH2_PROXY_CLIENT_ID
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
key: username
|
||||||
|
name: photoprism-auth
|
||||||
|
- name: OAUTH2_PROXY_CLIENT_SECRET
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
key: password
|
||||||
|
name: photoprism-auth
|
||||||
|
image: quay.io/oauth2-proxy/oauth2-proxy:v5.1.1
|
||||||
|
name: oauth-proxy
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
protocol: TCP
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: photoprism-auth
|
||||||
|
namespace: photoprism
|
||||||
|
annotations:
|
||||||
|
kube-1password: mr6spkkx7n3memkbute6ojaarm
|
||||||
|
kube-1password/vault: Kubernetes
|
||||||
|
type: Opaque
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: photoprism-auth
|
||||||
|
namespace: photoprism
|
||||||
|
labels:
|
||||||
|
app: photoprism-auth
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 8080
|
||||||
|
selector:
|
||||||
|
app: photoprism-auth
|
||||||
|
type: ClusterIP
|
||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: photoprism-auth
|
||||||
|
namespace: photoprism
|
||||||
|
labels:
|
||||||
|
app: photoprism-auth
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- photos.cluster.fun
|
||||||
|
secretName: photoprism-ingress
|
||||||
|
rules:
|
||||||
|
- host: photos.cluster.fun
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: photoprism-auth
|
||||||
|
servicePort: 80
|
26
manifests/printer.yaml
Normal file
26
manifests/printer.yaml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: printer-auth
|
||||||
|
namespace: inlets
|
||||||
|
labels:
|
||||||
|
app: printer-auth
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- printer.cluster.fun
|
||||||
|
secretName: printer-ingress
|
||||||
|
rules:
|
||||||
|
- host: printer.cluster.fun
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: auth-proxy
|
||||||
|
servicePort: 80
|
||||||
|
|
25
manifests/radarr.yaml
Normal file
25
manifests/radarr.yaml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: radarr
|
||||||
|
namespace: inlets
|
||||||
|
labels:
|
||||||
|
app: radarr
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- radarr.cluster.fun
|
||||||
|
secretName: radarr-ingress
|
||||||
|
rules:
|
||||||
|
- host: radarr.cluster.fun
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: auth-proxy
|
||||||
|
servicePort: 80
|
@@ -6,7 +6,7 @@ metadata:
|
|||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: rss
|
name: rss-db
|
||||||
namespace: rss
|
namespace: rss
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
@@ -16,15 +16,25 @@ spec:
|
|||||||
storage: 1Gi
|
storage: 1Gi
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: rss-auth
|
||||||
|
namespace: rss
|
||||||
|
annotations:
|
||||||
|
kube-1password: mr6spkkx7n3memkbute6ojaarm
|
||||||
|
kube-1password/vault: Kubernetes
|
||||||
|
type: Opaque
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: rss
|
name: rss-new
|
||||||
namespace: rss
|
namespace: rss
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 8080
|
targetPort: 8000
|
||||||
name: web
|
name: web
|
||||||
selector:
|
selector:
|
||||||
app: rss
|
app: rss
|
||||||
@@ -38,6 +48,8 @@ metadata:
|
|||||||
app: rss
|
app: rss
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: rss
|
app: rss
|
||||||
@@ -46,22 +58,56 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: rss
|
app: rss
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
|
||||||
fsGroup: 1000
|
|
||||||
dnsConfig:
|
dnsConfig:
|
||||||
options:
|
options:
|
||||||
- name: ndots
|
- name: ndots
|
||||||
value: "2"
|
value: "2"
|
||||||
containers:
|
containers:
|
||||||
- name: web
|
- args:
|
||||||
image: mdswanson/stringer
|
- --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/
|
||||||
|
- --cookie-secret=KDGD6rrK6cBmryyZ4wcJ9xAUNW9AQN
|
||||||
|
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:v5.1.1
|
||||||
|
name: oauth-proxy
|
||||||
|
ports:
|
||||||
|
- containerPort: 8000
|
||||||
|
protocol: TCP
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 125Mi
|
||||||
|
requests:
|
||||||
|
memory: 125Mi
|
||||||
|
- name: web
|
||||||
|
image: docker.cluster.fun/averagemarcus/gopherss:latest
|
||||||
env:
|
env:
|
||||||
- name: SECRET_TOKEN
|
|
||||||
value: inward-popcorn-decamp-epsilon
|
|
||||||
- name: PORT
|
- name: PORT
|
||||||
value: "8080"
|
value: "8080"
|
||||||
- name: DATABASE_URL
|
- name: DB_PATH
|
||||||
value: sqlite3:/data/stringer.db
|
value: /data/feeds.db
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
name: web
|
name: web
|
||||||
@@ -76,7 +122,7 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: storage
|
- name: storage
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: rss
|
claimName: rss-db
|
||||||
---
|
---
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
@@ -99,7 +145,7 @@ spec:
|
|||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
backend:
|
backend:
|
||||||
serviceName: rss
|
serviceName: rss-new
|
||||||
servicePort: 80
|
servicePort: 80
|
||||||
|
|
||||||
---
|
---
|
||||||
|
25
manifests/sonarr.yaml
Normal file
25
manifests/sonarr.yaml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: sonarr
|
||||||
|
namespace: inlets
|
||||||
|
labels:
|
||||||
|
app: sonarr
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- sonarr.cluster.fun
|
||||||
|
secretName: sonarr-ingress
|
||||||
|
rules:
|
||||||
|
- host: sonarr.cluster.fun
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: auth-proxy
|
||||||
|
servicePort: 80
|
68
manifests/svg-to-dxf.yaml
Normal file
68
manifests/svg-to-dxf.yaml
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: svg-to-dxf
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: svg-to-dxf
|
||||||
|
namespace: svg-to-dxf
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: web
|
||||||
|
name: web
|
||||||
|
selector:
|
||||||
|
app: svg-to-dxf
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: svg-to-dxf
|
||||||
|
namespace: svg-to-dxf
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: svg-to-dxf
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: svg-to-dxf
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: web
|
||||||
|
image: docker.cluster.fun/averagemarcus/svg-to-dxf:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
name: web
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 100Mi
|
||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: svg-to-dxf
|
||||||
|
namespace: svg-to-dxf
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- svg-to-dxf.cluster.fun
|
||||||
|
secretName: svg-to-dxf-ingress
|
||||||
|
rules:
|
||||||
|
- host: svg-to-dxf.cluster.fun
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: svg-to-dxf
|
||||||
|
servicePort: 80
|
71
manifests/til.yaml
Normal file
71
manifests/til.yaml
Normal file
@@ -0,0 +1,71 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: til
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: til
|
||||||
|
namespace: til
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: web
|
||||||
|
name: web
|
||||||
|
selector:
|
||||||
|
app: til
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: til
|
||||||
|
namespace: til
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: til
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: til
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: web
|
||||||
|
image: docker.cluster.fun/averagemarcus/til:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
name: web
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 100Mi
|
||||||
|
requests:
|
||||||
|
memory: 100Mi
|
||||||
|
---
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: til
|
||||||
|
namespace: til
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- til.marcusnoble.co.uk
|
||||||
|
secretName: til-ingress
|
||||||
|
rules:
|
||||||
|
- host: til.marcusnoble.co.uk
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: til
|
||||||
|
servicePort: 80
|
||||||
|
|
@@ -46,7 +46,7 @@ spec:
|
|||||||
- --defaultentrypoints=http,https
|
- --defaultentrypoints=http,https
|
||||||
- --entrypoints=Name:https Address::443 TLS
|
- --entrypoints=Name:https Address::443 TLS
|
||||||
- --entrypoints=Name:http Address::80
|
- --entrypoints=Name:http Address::80
|
||||||
- --accesslog
|
- --accesslog=true
|
||||||
- --accesslog.format=json
|
- --accesslog.format=json
|
||||||
image: docker.io/traefik:1.7
|
image: docker.io/traefik:1.7
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
25
manifests/transmission.yaml
Normal file
25
manifests/transmission.yaml
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: transmission
|
||||||
|
namespace: inlets
|
||||||
|
labels:
|
||||||
|
app: transmission
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
||||||
|
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- transmission.cluster.fun
|
||||||
|
secretName: transmission-ingress
|
||||||
|
rules:
|
||||||
|
- host: transmission.cluster.fun
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
backend:
|
||||||
|
serviceName: auth-proxy
|
||||||
|
servicePort: 80
|
@@ -8,17 +8,13 @@ spec:
|
|||||||
- name: DOCKERFILE
|
- name: DOCKERFILE
|
||||||
type: string
|
type: string
|
||||||
description: The path to the dockerfile to build
|
description: The path to the dockerfile to build
|
||||||
default: /Dockerfile
|
default: Dockerfile
|
||||||
- name: CONTEXT
|
- name: CONTEXT
|
||||||
type: string
|
type: string
|
||||||
description: The build context used by Docker.
|
description: The build context used by Docker.
|
||||||
default: ./
|
default: .
|
||||||
- name: IMAGE
|
- name: IMAGE
|
||||||
type: string
|
type: string
|
||||||
description: Name (reference) of the image to build.
|
|
||||||
- name: EXTRA_ARGS
|
|
||||||
type: string
|
|
||||||
default: ""
|
|
||||||
resources:
|
resources:
|
||||||
inputs:
|
inputs:
|
||||||
- name: src
|
- name: src
|
||||||
@@ -29,24 +25,35 @@ spec:
|
|||||||
steps:
|
steps:
|
||||||
- name: build-and-push
|
- name: build-and-push
|
||||||
workingDir: /workspace/src
|
workingDir: /workspace/src
|
||||||
image: gcr.io/kaniko-project/executor:latest
|
image: moby/buildkit:latest
|
||||||
env:
|
env:
|
||||||
- name: DOCKER_CONFIG
|
- name: DOCKER_CONFIG
|
||||||
value: /kaniko/.docker
|
value: /root/.docker
|
||||||
command:
|
command:
|
||||||
- /kaniko/executor
|
- sh
|
||||||
- $(params.EXTRA_ARGS)
|
- -c
|
||||||
- --dockerfile=/workspace/src/$(params.DOCKERFILE)
|
- |
|
||||||
- --context=/workspace/src/$(params.CONTEXT)
|
PLATFORMS=$(grep 'PLATFORMS ?= ' Makefile | sed -E 's/^PLATFORMS \?= (.+)$/\1/')
|
||||||
- --destination=$(params.IMAGE)
|
if [ -z $PLATFORMS ]; then
|
||||||
- --oci-layout-path=/workspace/src/image-digest
|
PLATFORMS=linux/amd64
|
||||||
- --digest-file=/tekton/results/IMAGE_DIGEST
|
fi
|
||||||
- --cache=true
|
|
||||||
|
buildctl-daemonless.sh --debug \
|
||||||
|
build \
|
||||||
|
--progress=plain \
|
||||||
|
--frontend=dockerfile.v0 \
|
||||||
|
--opt filename=$(params.DOCKERFILE) \
|
||||||
|
--opt platform=${PLATFORMS} \
|
||||||
|
--local context=$(params.CONTEXT) \
|
||||||
|
--local dockerfile=. \
|
||||||
|
--output type=image,name=$(params.IMAGE),push=true \
|
||||||
|
--export-cache type=inline \
|
||||||
|
--import-cache type=registry,ref=$(params.IMAGE)
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 0
|
privileged: true
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: docker-config
|
- name: docker-config
|
||||||
mountPath: /kaniko/.docker/config.json
|
mountPath: /root/.docker/config.json
|
||||||
subPath: config.json
|
subPath: config.json
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker-config
|
- name: docker-config
|
||||||
|
@@ -15,3 +15,21 @@ resource "scaleway_object_bucket" "linx" {
|
|||||||
output "linx-bucket_id" {
|
output "linx-bucket_id" {
|
||||||
value = scaleway_object_bucket.linx.id
|
value = scaleway_object_bucket.linx.id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
resource "scaleway_object_bucket" "outline" {
|
||||||
|
name = "cluster.fun-outline"
|
||||||
|
acl = "private"
|
||||||
|
}
|
||||||
|
|
||||||
|
output "outline-bucket_id" {
|
||||||
|
value = scaleway_object_bucket.outline.id
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "scaleway_object_bucket" "logs" {
|
||||||
|
name = "cluster.fun-logs"
|
||||||
|
acl = "private"
|
||||||
|
}
|
||||||
|
|
||||||
|
output "logs-bucket_id" {
|
||||||
|
value = scaleway_object_bucket.logs.id
|
||||||
|
}
|
||||||
|
@@ -24,7 +24,7 @@ resource "helm_release" "helm-operator" {
|
|||||||
repository = data.helm_repository.fluxcd.metadata[0].name
|
repository = data.helm_repository.fluxcd.metadata[0].name
|
||||||
chart = "helm-operator"
|
chart = "helm-operator"
|
||||||
|
|
||||||
max_history = 4
|
max_history = 3
|
||||||
|
|
||||||
set {
|
set {
|
||||||
name = "helm.versions"
|
name = "helm.versions"
|
||||||
|
Reference in New Issue
Block a user