Skip to content

Commit

Permalink
issue #399: team webtop env
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasCardin committed Oct 25, 2024
1 parent 8ac62fd commit 157207e
Show file tree
Hide file tree
Showing 29 changed files with 910 additions and 84 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: andjeutcha-webtop
spec:
replicas: 1
selector:
matchLabels:
app: andjeutcha-webtop
template:
metadata:
labels:
app: andjeutcha-webtop
spec:
containers:
- name: webtop
image: linuxserver/webtop:ubuntu-kde
ports:
- containerPort: 3000
envFrom:
- secretRef:
name: andjeutcha-webtop-secrets
volumeMounts:
- name: config
mountPath: /config
volumes:
- name: config
persistentVolumeClaim:
claimName: webtop-config-pvc

---
apiVersion: v1
kind: Service
metadata:
name: andjeutcha-webtop-service
spec:
type: ClusterIP
selector:
app: webtop
ports:
- protocol: TCP
port: 3000
targetPort: 3000

---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: andjeutcha-webtop-config-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# For more information check https://github.com/nginxinc/kubernetes-ingress/issues/323
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: andjeutcha-webtop-ingress
annotations:
nginx.ingress.kubernetes.io/whitelist-source-range: 205.194.32.0/24,10.244.0.0/16,192.197.71.0/24
external-dns.alpha.kubernetes.io/target: inspection.alpha.canada.ca
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/add-base-url: "true"
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/client_max_body_size: "200m"
nginx.ingress.kubernetes.io/proxy-read-timeout: "120"
ingress.kubernetes.io/force-ssl-redirect: "true"
kubernetes.io/tls-acme: "true"
spec:
ingressClassName: nginx
tls:
- hosts:
- andjeutcha-webtop.inspection.alpha.canada.ca
secretName: webtop-tls
rules:
- host: andjeutcha-webtop.inspection.alpha.canada.ca
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: andjeutcha-webtop-service
port:
number: 3000
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
kind: Secret
apiVersion: v1
metadata:
name: andjeutcha-webtop-secrets
annotations:
avp.kubernetes.io/path: "kv/data/webtop/test"
avp.kubernetes.io/secret-version: "1"
stringData:
PUID: <PUID>
PGID: <PGID>
TZ: <TZ>
TITLE: <TITLE>
CUSTOM_USER: <CUSTOM_USER>
PASSWORD: <PASSWORD>
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: gallagbe-webtop
spec:
replicas: 1
selector:
matchLabels:
app: gallagbe-webtop
template:
metadata:
labels:
app: gallagbe-webtop
spec:
containers:
- name: webtop
image: linuxserver/webtop:ubuntu-kde
ports:
- containerPort: 3000
envFrom:
- secretRef:
name: gallagbe-webtop-secrets
volumeMounts:
- name: config
mountPath: /config
volumes:
- name: config
persistentVolumeClaim:
claimName: webtop-config-pvc

---
apiVersion: v1
kind: Service
metadata:
name: gallagbe-webtop-service
spec:
type: ClusterIP
selector:
app: webtop
ports:
- protocol: TCP
port: 3000
targetPort: 3000

---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: gallagbe-webtop-config-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# For more information check https://github.com/nginxinc/kubernetes-ingress/issues/323
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gallagbe-webtop-ingress
annotations:
nginx.ingress.kubernetes.io/whitelist-source-range: 205.194.32.0/24,10.244.0.0/16,192.197.71.0/24
external-dns.alpha.kubernetes.io/target: inspection.alpha.canada.ca
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/add-base-url: "true"
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/client_max_body_size: "200m"
nginx.ingress.kubernetes.io/proxy-read-timeout: "120"
ingress.kubernetes.io/force-ssl-redirect: "true"
kubernetes.io/tls-acme: "true"
spec:
ingressClassName: nginx
tls:
- hosts:
- gallagbe-webtop.inspection.alpha.canada.ca
secretName: webtop-tls
rules:
- host: gallagbe-webtop.inspection.alpha.canada.ca
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: gallagbe-webtop-service
port:
number: 3000
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
kind: Secret
apiVersion: v1
metadata:
name: gallagbe-webtop-secrets
annotations:
avp.kubernetes.io/path: "kv/data/webtop/test"
avp.kubernetes.io/secret-version: "1"
stringData:
PUID: <PUID>
PGID: <PGID>
TZ: <TZ>
TITLE: <TITLE>
CUSTOM_USER: <CUSTOM_USER>
PASSWORD: <PASSWORD>
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: jbarbier-webtop
spec:
replicas: 1
selector:
matchLabels:
app: jbarbier-webtop
template:
metadata:
labels:
app: jbarbier-webtop
spec:
containers:
- name: webtop
image: linuxserver/webtop:ubuntu-kde
ports:
- containerPort: 3000
envFrom:
- secretRef:
name: jbarbier-webtop-secrets
volumeMounts:
- name: config
mountPath: /config
volumes:
- name: config
persistentVolumeClaim:
claimName: webtop-config-pvc

---
apiVersion: v1
kind: Service
metadata:
name: jbarbier-webtop-service
spec:
type: ClusterIP
selector:
app: webtop
ports:
- protocol: TCP
port: 3000
targetPort: 3000

---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: jbarbier-webtop-config-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# For more information check https://github.com/nginxinc/kubernetes-ingress/issues/323
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: jbarbier-webtop-ingress
annotations:
nginx.ingress.kubernetes.io/whitelist-source-range: 205.194.32.0/24,10.244.0.0/16,192.197.71.0/24
external-dns.alpha.kubernetes.io/target: inspection.alpha.canada.ca
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/add-base-url: "true"
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/client_max_body_size: "200m"
nginx.ingress.kubernetes.io/proxy-read-timeout: "120"
ingress.kubernetes.io/force-ssl-redirect: "true"
kubernetes.io/tls-acme: "true"
spec:
ingressClassName: nginx
tls:
- hosts:
- jbarbier-webtop.inspection.alpha.canada.ca
secretName: webtop-tls
rules:
- host: jbarbier-webtop.inspection.alpha.canada.ca
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: jbarbier-webtop-service
port:
number: 3000
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
kind: Secret
apiVersion: v1
metadata:
name: jbarbier-webtop-secrets
annotations:
avp.kubernetes.io/path: "kv/data/webtop/test"
avp.kubernetes.io/secret-version: "1"
stringData:
PUID: <PUID>
PGID: <PGID>
TZ: <TZ>
TITLE: <TITLE>
CUSTOM_USER: <CUSTOM_USER>
PASSWORD: <PASSWORD>
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: jsantos-webtop
spec:
replicas: 1
selector:
matchLabels:
app: jsantos-webtop
template:
metadata:
labels:
app: jsantos-webtop
spec:
containers:
- name: webtop
image: linuxserver/webtop:ubuntu-kde
ports:
- containerPort: 3000
envFrom:
- secretRef:
name: jsantos-webtop-secrets
volumeMounts:
- name: config
mountPath: /config
volumes:
- name: config
persistentVolumeClaim:
claimName: webtop-config-pvc

---
apiVersion: v1
kind: Service
metadata:
name: jsantos-webtop-service
spec:
type: ClusterIP
selector:
app: webtop
ports:
- protocol: TCP
port: 3000
targetPort: 3000

---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: jsantos-webtop-config-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
Loading

0 comments on commit 157207e

Please sign in to comment.