Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 254bf28304 | |||
| 527686c11f | |||
| 1154b133e6 | |||
| ef5199102e | |||
| 88f0f328d5 | |||
| 1faf9aecf9 | |||
| cd73f5c6be | |||
| f3ec319b97 | |||
| d0b7364e9d | |||
| 88194e2149 | |||
| 6159e94a64 |
@@ -66,6 +66,7 @@ ArgoCD homelab project
|
|||||||
| **tg-bots** | [](https://ag.hexor.cy/applications/argocd/tg-bots) |
|
| **tg-bots** | [](https://ag.hexor.cy/applications/argocd/tg-bots) |
|
||||||
| **vaultwarden** | [](https://ag.hexor.cy/applications/argocd/vaultwarden) |
|
| **vaultwarden** | [](https://ag.hexor.cy/applications/argocd/vaultwarden) |
|
||||||
| **vpn** | [](https://ag.hexor.cy/applications/argocd/vpn) |
|
| **vpn** | [](https://ag.hexor.cy/applications/argocd/vpn) |
|
||||||
|
| **web-petting** | [](https://ag.hexor.cy/applications/argocd/web-petting) |
|
||||||
| **wedding** | [](https://ag.hexor.cy/applications/argocd/wedding) |
|
| **wedding** | [](https://ag.hexor.cy/applications/argocd/wedding) |
|
||||||
| **xandikos** | [](https://ag.hexor.cy/applications/argocd/xandikos) |
|
| **xandikos** | [](https://ag.hexor.cy/applications/argocd/xandikos) |
|
||||||
|
|
||||||
|
|||||||
@@ -60,8 +60,8 @@ synapse:
|
|||||||
storage:
|
storage:
|
||||||
size: 20Gi
|
size: 20Gi
|
||||||
maxUploadSize: 100M
|
maxUploadSize: 100M
|
||||||
# nodeSelector:
|
nodeSelector:
|
||||||
# kubernetes.io/hostname: nas.homenet
|
kubernetes.io/hostname: master.tail2fe2d.ts.net
|
||||||
|
|
||||||
## Matrix Authentication Service
|
## Matrix Authentication Service
|
||||||
matrixAuthenticationService:
|
matrixAuthenticationService:
|
||||||
@@ -88,24 +88,24 @@ matrixAuthenticationService:
|
|||||||
1-oidc:
|
1-oidc:
|
||||||
configSecret: matrix-oidc-config
|
configSecret: matrix-oidc-config
|
||||||
configSecretKey: mas-oidc.yaml
|
configSecretKey: mas-oidc.yaml
|
||||||
# nodeSelector:
|
nodeSelector:
|
||||||
# kubernetes.io/hostname: nas.homenet
|
kubernetes.io/hostname: master.tail2fe2d.ts.net
|
||||||
|
|
||||||
## Element Web client
|
## Element Web client
|
||||||
elementWeb:
|
elementWeb:
|
||||||
enabled: true
|
enabled: true
|
||||||
ingress:
|
ingress:
|
||||||
host: chat.matrix.hexor.cy
|
host: chat.matrix.hexor.cy
|
||||||
# nodeSelector:
|
nodeSelector:
|
||||||
# kubernetes.io/hostname: nas.homenet
|
kubernetes.io/hostname: master.tail2fe2d.ts.net
|
||||||
|
|
||||||
## Element Admin panel
|
## Element Admin panel
|
||||||
elementAdmin:
|
elementAdmin:
|
||||||
enabled: true
|
enabled: true
|
||||||
ingress:
|
ingress:
|
||||||
host: admin.matrix.hexor.cy
|
host: admin.matrix.hexor.cy
|
||||||
# nodeSelector:
|
nodeSelector:
|
||||||
# kubernetes.io/hostname: nas.homenet
|
kubernetes.io/hostname: master.tail2fe2d.ts.net
|
||||||
|
|
||||||
## Well-known delegation on the base domain (host is derived from serverName)
|
## Well-known delegation on the base domain (host is derived from serverName)
|
||||||
wellKnownDelegation:
|
wellKnownDelegation:
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ spec:
|
|||||||
mountPath: /templates/subscription
|
mountPath: /templates/subscription
|
||||||
containers:
|
containers:
|
||||||
- name: pasarguard-web
|
- name: pasarguard-web
|
||||||
image: 'pasarguard/panel:v3.0.2'
|
image: 'pasarguard/panel:v3.0.1'
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
@@ -75,6 +75,9 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: pasarguard
|
name: pasarguard
|
||||||
|
annotations:
|
||||||
|
traefik.ingress.kubernetes.io/service.serversscheme: https
|
||||||
|
traefik.ingress.kubernetes.io/service.serverstransport: pasarguard-pasarguard-transport@kubernetescrd
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: pasarguard
|
app: pasarguard
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
---
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: ServersTransport
|
||||||
|
metadata:
|
||||||
|
name: pasarguard-transport
|
||||||
|
spec:
|
||||||
|
insecureSkipVerify: true
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: pasarguard-ingress
|
||||||
|
annotations:
|
||||||
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
|
spec:
|
||||||
|
ingressClassName: traefik
|
||||||
|
rules:
|
||||||
|
- host: ps.hexor.cy
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: pasarguard
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
tls:
|
||||||
|
- secretName: pasarguard-tls
|
||||||
|
hosts:
|
||||||
|
- ps.hexor.cy
|
||||||
@@ -9,3 +9,4 @@ resources:
|
|||||||
- ./certificate.yaml
|
- ./certificate.yaml
|
||||||
- ./configmap-scripts.yaml
|
- ./configmap-scripts.yaml
|
||||||
- ./servicemonitor.yaml
|
- ./servicemonitor.yaml
|
||||||
|
- ./ingress.yaml
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: web-petting
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: apps
|
||||||
|
destination:
|
||||||
|
namespace: web-petting
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
source:
|
||||||
|
repoURL: ssh://git@gt.hexor.cy:30022/ab/homelab.git
|
||||||
|
targetRevision: HEAD
|
||||||
|
path: k8s/apps/web-petting
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
selfHeal: true
|
||||||
|
prune: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: web-petting
|
||||||
|
labels:
|
||||||
|
app: web-petting
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: web-petting
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: web-petting
|
||||||
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/os: linux
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: web-petting-data
|
||||||
|
containers:
|
||||||
|
- name: web-petting
|
||||||
|
image: ultradesu/web-petting:0.1.0
|
||||||
|
imagePullPolicy: Always
|
||||||
|
args:
|
||||||
|
- "tail"
|
||||||
|
- "-F"
|
||||||
|
- "/1"
|
||||||
|
# - "web-petting"
|
||||||
|
# - "-l"
|
||||||
|
# - "0.0.0.0:3000"
|
||||||
|
ports:
|
||||||
|
- containerPort: 3000
|
||||||
|
name: http
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /data
|
||||||
|
env:
|
||||||
|
- name: RUST_LOG
|
||||||
|
value: "info"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "64Mi"
|
||||||
|
cpu: "50m"
|
||||||
|
limits:
|
||||||
|
memory: "128Mi"
|
||||||
|
cpu: "150m"
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1000
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: web-petting-tls-ingress
|
||||||
|
annotations:
|
||||||
|
ingressClassName: traefik
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
traefik.ingress.kubernetes.io/router.middlewares: kube-system-https-redirect@kubernetescrd
|
||||||
|
acme.cert-manager.io/http01-edit-in-place: "true"
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: pet.hexor.cy
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: web-petting
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
tls:
|
||||||
|
- secretName: web-petting-tls
|
||||||
|
hosts:
|
||||||
|
- pet.hexor.cy
|
||||||
|
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- app.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
|
- storage.yaml
|
||||||
|
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: web-petting
|
||||||
|
labels:
|
||||||
|
app: web-petting
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app: web-petting
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 3000
|
||||||
|
protocol: TCP
|
||||||
|
name: http
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: web-petting-data
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
@@ -7,6 +7,8 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
concurrency: 1
|
concurrency: 1
|
||||||
cordon: true
|
cordon: true
|
||||||
|
tolerations:
|
||||||
|
- operator: Exists
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- key: node-role.kubernetes.io/control-plane
|
- key: node-role.kubernetes.io/control-plane
|
||||||
@@ -16,7 +18,7 @@ spec:
|
|||||||
serviceAccountName: system-upgrade
|
serviceAccountName: system-upgrade
|
||||||
upgrade:
|
upgrade:
|
||||||
image: rancher/k3s-upgrade
|
image: rancher/k3s-upgrade
|
||||||
version: v1.35.2+k3s1
|
version: v1.35.4+k3s1
|
||||||
---
|
---
|
||||||
# Agent plan
|
# Agent plan
|
||||||
apiVersion: upgrade.cattle.io/v1
|
apiVersion: upgrade.cattle.io/v1
|
||||||
@@ -27,6 +29,8 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
concurrency: 1
|
concurrency: 1
|
||||||
cordon: true
|
cordon: true
|
||||||
|
tolerations:
|
||||||
|
- operator: Exists
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- key: node-role.kubernetes.io/control-plane
|
- key: node-role.kubernetes.io/control-plane
|
||||||
@@ -39,4 +43,4 @@ spec:
|
|||||||
serviceAccountName: system-upgrade
|
serviceAccountName: system-upgrade
|
||||||
upgrade:
|
upgrade:
|
||||||
image: rancher/k3s-upgrade
|
image: rancher/k3s-upgrade
|
||||||
version: v1.35.2+k3s1
|
version: v1.35.4+k3s1
|
||||||
Reference in New Issue
Block a user