Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a81ec0431b |
@@ -62,12 +62,9 @@ ArgoCD homelab project
|
|||||||
| **sonarr-stack** | [](https://ag.hexor.cy/applications/argocd/sonarr-stack) |
|
| **sonarr-stack** | [](https://ag.hexor.cy/applications/argocd/sonarr-stack) |
|
||||||
| **stirling-pdf** | [](https://ag.hexor.cy/applications/argocd/stirling-pdf) |
|
| **stirling-pdf** | [](https://ag.hexor.cy/applications/argocd/stirling-pdf) |
|
||||||
| **syncthing** | [](https://ag.hexor.cy/applications/argocd/syncthing) |
|
| **syncthing** | [](https://ag.hexor.cy/applications/argocd/syncthing) |
|
||||||
| **teamspeak** | [](https://ag.hexor.cy/applications/argocd/teamspeak) |
|
|
||||||
| **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) |
|
|
||||||
| **xandikos** | [](https://ag.hexor.cy/applications/argocd/xandikos) |
|
| **xandikos** | [](https://ag.hexor.cy/applications/argocd/xandikos) |
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -48,8 +48,6 @@ spec:
|
|||||||
value: "true"
|
value: "true"
|
||||||
- name: GITEA__service__CAPTCHA_TYPE
|
- name: GITEA__service__CAPTCHA_TYPE
|
||||||
value: "hcaptcha"
|
value: "hcaptcha"
|
||||||
- name: GITEA__webhook__ALLOWED_HOST_LIST
|
|
||||||
value: "*"
|
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: gitea-recapcha-creds
|
name: gitea-recapcha-creds
|
||||||
|
|||||||
@@ -60,8 +60,8 @@ synapse:
|
|||||||
storage:
|
storage:
|
||||||
size: 20Gi
|
size: 20Gi
|
||||||
maxUploadSize: 100M
|
maxUploadSize: 100M
|
||||||
nodeSelector:
|
# nodeSelector:
|
||||||
kubernetes.io/hostname: master.tail2fe2d.ts.net
|
# kubernetes.io/hostname: nas.homenet
|
||||||
|
|
||||||
## 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: master.tail2fe2d.ts.net
|
# kubernetes.io/hostname: nas.homenet
|
||||||
|
|
||||||
## 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: master.tail2fe2d.ts.net
|
# kubernetes.io/hostname: nas.homenet
|
||||||
|
|
||||||
## 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: master.tail2fe2d.ts.net
|
# kubernetes.io/hostname: nas.homenet
|
||||||
|
|
||||||
## 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:
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ spec:
|
|||||||
mountPath: /scripts
|
mountPath: /scripts
|
||||||
containers:
|
containers:
|
||||||
- name: pasarguard-node
|
- name: pasarguard-node
|
||||||
image: 'pasarguard/node:v0.3.0'
|
image: 'pasarguard/node:v0.2.1'
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
command:
|
command:
|
||||||
- /bin/sh
|
- /bin/sh
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ spec:
|
|||||||
mountPath: /templates/subscription
|
mountPath: /templates/subscription
|
||||||
containers:
|
containers:
|
||||||
- name: pasarguard-web
|
- name: pasarguard-web
|
||||||
image: 'pasarguard/panel:v3.0.1'
|
image: 'pasarguard/panel:latest'
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
@@ -75,9 +75,6 @@ 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
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
---
|
|
||||||
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,4 +9,3 @@ resources:
|
|||||||
- ./certificate.yaml
|
- ./certificate.yaml
|
||||||
- ./configmap-scripts.yaml
|
- ./configmap-scripts.yaml
|
||||||
- ./servicemonitor.yaml
|
- ./servicemonitor.yaml
|
||||||
- ./ingress.yaml
|
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: teamspeak
|
|
||||||
namespace: argocd
|
|
||||||
spec:
|
|
||||||
project: apps
|
|
||||||
destination:
|
|
||||||
namespace: teamspeak
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
source:
|
|
||||||
repoURL: ssh://git@gt.hexor.cy:30022/ab/homelab.git
|
|
||||||
targetRevision: HEAD
|
|
||||||
path: k8s/apps/teamspeak
|
|
||||||
syncPolicy:
|
|
||||||
automated:
|
|
||||||
selfHeal: true
|
|
||||||
prune: true
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: teamspeak
|
|
||||||
labels:
|
|
||||||
app: teamspeak
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: teamspeak
|
|
||||||
replicas: 1
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: teamspeak
|
|
||||||
spec:
|
|
||||||
volumes:
|
|
||||||
- name: data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: teamspeak-data
|
|
||||||
containers:
|
|
||||||
- name: teamspeak
|
|
||||||
image: 'teamspeak:latest'
|
|
||||||
env:
|
|
||||||
- name: TS3SERVER_LICENSE
|
|
||||||
value: "accept"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: "256Mi"
|
|
||||||
cpu: "100m"
|
|
||||||
limits:
|
|
||||||
memory: "512Mi"
|
|
||||||
cpu: "1000m"
|
|
||||||
ports:
|
|
||||||
- name: voice
|
|
||||||
containerPort: 9987
|
|
||||||
protocol: UDP
|
|
||||||
- name: filetransfer
|
|
||||||
containerPort: 30033
|
|
||||||
protocol: TCP
|
|
||||||
- name: serverquery
|
|
||||||
containerPort: 10011
|
|
||||||
protocol: TCP
|
|
||||||
volumeMounts:
|
|
||||||
- name: data
|
|
||||||
mountPath: /var/ts3server
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
|
|
||||||
resources:
|
|
||||||
- app.yaml
|
|
||||||
- storage.yaml
|
|
||||||
- deployment.yaml
|
|
||||||
- service.yaml
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: teamspeak
|
|
||||||
spec:
|
|
||||||
type: LoadBalancer
|
|
||||||
selector:
|
|
||||||
app: teamspeak
|
|
||||||
ports:
|
|
||||||
- name: voice
|
|
||||||
protocol: UDP
|
|
||||||
port: 9987
|
|
||||||
targetPort: 9987
|
|
||||||
- name: filetransfer
|
|
||||||
protocol: TCP
|
|
||||||
port: 30033
|
|
||||||
targetPort: 30033
|
|
||||||
- name: serverquery
|
|
||||||
protocol: TCP
|
|
||||||
port: 10011
|
|
||||||
targetPort: 10011
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: teamspeak-data
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
storageClassName: longhorn
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 5Gi
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
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:
|
|
||||||
- "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
|
|
||||||
readOnlyRootFilesystem: true
|
|
||||||
capabilities:
|
|
||||||
drop:
|
|
||||||
- ALL
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
---
|
|
||||||
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
|
|
||||||
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
|
|
||||||
resources:
|
|
||||||
- app.yaml
|
|
||||||
- deployment.yaml
|
|
||||||
- service.yaml
|
|
||||||
- ingress.yaml
|
|
||||||
- storage.yaml
|
|
||||||
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: web-petting-data
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
storageClassName: longhorn
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 10Gi
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: wedding
|
|
||||||
namespace: argocd
|
|
||||||
spec:
|
|
||||||
project: apps
|
|
||||||
destination:
|
|
||||||
namespace: wedding
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
source:
|
|
||||||
repoURL: ssh://git@gt.hexor.cy:30022/ab/homelab.git
|
|
||||||
targetRevision: HEAD
|
|
||||||
path: k8s/apps/wedding
|
|
||||||
syncPolicy:
|
|
||||||
automated:
|
|
||||||
selfHeal: true
|
|
||||||
prune: true
|
|
||||||
syncOptions:
|
|
||||||
- CreateNamespace=true
|
|
||||||
@@ -1,69 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: wedding
|
|
||||||
labels:
|
|
||||||
app: wedding
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: wedding
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: wedding
|
|
||||||
spec:
|
|
||||||
nodeSelector:
|
|
||||||
kubernetes.io/hostname: spb.tail2fe2d.ts.net
|
|
||||||
initContainers:
|
|
||||||
- name: git-clone
|
|
||||||
image: alpine/git:latest
|
|
||||||
command:
|
|
||||||
- sh
|
|
||||||
- -c
|
|
||||||
- git clone --depth 1 https://gt.hexor.cy/ab/wedding.git /src
|
|
||||||
volumeMounts:
|
|
||||||
- name: source
|
|
||||||
mountPath: /src
|
|
||||||
- name: zola-build
|
|
||||||
image: ghcr.io/getzola/zola:v0.22.1
|
|
||||||
command:
|
|
||||||
- /bin/zola
|
|
||||||
args:
|
|
||||||
- --root
|
|
||||||
- /src
|
|
||||||
- build
|
|
||||||
- --base-url
|
|
||||||
- https://wedding.hexor.cy/
|
|
||||||
- --output-dir
|
|
||||||
- /public/html
|
|
||||||
volumeMounts:
|
|
||||||
- name: source
|
|
||||||
mountPath: /src
|
|
||||||
- name: public
|
|
||||||
mountPath: /public
|
|
||||||
containers:
|
|
||||||
- name: nginx
|
|
||||||
image: nginx:alpine
|
|
||||||
ports:
|
|
||||||
- containerPort: 80
|
|
||||||
protocol: TCP
|
|
||||||
volumeMounts:
|
|
||||||
- name: public
|
|
||||||
mountPath: /usr/share/nginx/html
|
|
||||||
subPath: html
|
|
||||||
readOnly: true
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: 32Mi
|
|
||||||
cpu: 10m
|
|
||||||
limits:
|
|
||||||
memory: 64Mi
|
|
||||||
cpu: 100m
|
|
||||||
volumes:
|
|
||||||
- name: source
|
|
||||||
emptyDir: {}
|
|
||||||
- name: public
|
|
||||||
emptyDir: {}
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: networking.k8s.io/v1
|
|
||||||
kind: Ingress
|
|
||||||
metadata:
|
|
||||||
name: wedding-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: wedding.hexor.cy
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: wedding
|
|
||||||
port:
|
|
||||||
number: 80
|
|
||||||
tls:
|
|
||||||
- secretName: wedding-tls
|
|
||||||
hosts:
|
|
||||||
- wedding.hexor.cy
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
|
|
||||||
resources:
|
|
||||||
- app.yaml
|
|
||||||
- rbac.yaml
|
|
||||||
- deployment.yaml
|
|
||||||
- service.yaml
|
|
||||||
- ingress.yaml
|
|
||||||
- webhook.yaml
|
|
||||||
@@ -1,42 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: wedding-deployer
|
|
||||||
namespace: wedding
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: wedding-deployer-token
|
|
||||||
namespace: wedding
|
|
||||||
annotations:
|
|
||||||
kubernetes.io/service-account.name: wedding-deployer
|
|
||||||
type: kubernetes.io/service-account-token
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: Role
|
|
||||||
metadata:
|
|
||||||
name: wedding-restart
|
|
||||||
namespace: wedding
|
|
||||||
rules:
|
|
||||||
- apiGroups: ["apps"]
|
|
||||||
resources: ["deployments"]
|
|
||||||
verbs: ["get", "patch"]
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: RoleBinding
|
|
||||||
metadata:
|
|
||||||
name: wedding-deployer-restart
|
|
||||||
namespace: wedding
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: wedding-deployer
|
|
||||||
namespace: wedding
|
|
||||||
roleRef:
|
|
||||||
kind: Role
|
|
||||||
name: wedding-restart
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: wedding
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: wedding
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
targetPort: 80
|
|
||||||
protocol: TCP
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
name: webhook-script
|
|
||||||
data:
|
|
||||||
serve.sh: |
|
|
||||||
#!/bin/sh
|
|
||||||
echo "Webhook server listening on :8080"
|
|
||||||
while true; do
|
|
||||||
echo -e "HTTP/1.1 200 OK\r\nContent-Length: 2\r\nConnection: close\r\n\r\nok" \
|
|
||||||
| nc -l -p 8080 > /dev/null
|
|
||||||
echo "Received webhook, restarting deployment..."
|
|
||||||
kubectl rollout restart deployment/wedding
|
|
||||||
done
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: wedding-webhook
|
|
||||||
labels:
|
|
||||||
app: wedding-webhook
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: wedding-webhook
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: wedding-webhook
|
|
||||||
spec:
|
|
||||||
nodeSelector:
|
|
||||||
kubernetes.io/hostname: spb.tail2fe2d.ts.net
|
|
||||||
serviceAccountName: wedding-deployer
|
|
||||||
containers:
|
|
||||||
- name: webhook
|
|
||||||
image: alpine/k8s:1.32.3
|
|
||||||
command: ["sh", "/scripts/serve.sh"]
|
|
||||||
ports:
|
|
||||||
- containerPort: 8080
|
|
||||||
protocol: TCP
|
|
||||||
volumeMounts:
|
|
||||||
- name: script
|
|
||||||
mountPath: /scripts
|
|
||||||
readOnly: true
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: 16Mi
|
|
||||||
cpu: 5m
|
|
||||||
limits:
|
|
||||||
memory: 32Mi
|
|
||||||
cpu: 50m
|
|
||||||
volumes:
|
|
||||||
- name: script
|
|
||||||
configMap:
|
|
||||||
name: webhook-script
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: wedding-webhook
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: wedding-webhook
|
|
||||||
ports:
|
|
||||||
- port: 8080
|
|
||||||
targetPort: 8080
|
|
||||||
protocol: TCP
|
|
||||||
@@ -18,9 +18,11 @@ spec:
|
|||||||
key: apiKey
|
key: apiKey
|
||||||
selector:
|
selector:
|
||||||
dnsZones:
|
dnsZones:
|
||||||
|
- "*.hexor.cy"
|
||||||
- "*.hexor.ru"
|
- "*.hexor.ru"
|
||||||
- "*.btwiusearch.net"
|
- "*.btwiusearch.net"
|
||||||
- "hexor.ru"
|
- "hexor.ru"
|
||||||
|
- "hexor.cy"
|
||||||
- "btwiusearch.net"
|
- "btwiusearch.net"
|
||||||
- dns01:
|
- dns01:
|
||||||
route53:
|
route53:
|
||||||
@@ -33,6 +35,7 @@ spec:
|
|||||||
key: secretKey
|
key: secretKey
|
||||||
selector:
|
selector:
|
||||||
dnsZones:
|
dnsZones:
|
||||||
- "*.hexor.cy"
|
- "ps.hexor.cy"
|
||||||
- "hexor.cy"
|
- "of.hexor.cy"
|
||||||
|
- "matrix.hexor.cy"
|
||||||
|
|
||||||
|
|||||||
@@ -20,12 +20,8 @@ loki:
|
|||||||
filesystem:
|
filesystem:
|
||||||
chunks_directory: /var/loki/chunks
|
chunks_directory: /var/loki/chunks
|
||||||
rules_directory: /var/loki/rules
|
rules_directory: /var/loki/rules
|
||||||
compactor:
|
|
||||||
retention_enabled: true
|
|
||||||
delete_request_store: filesystem
|
|
||||||
limits_config:
|
limits_config:
|
||||||
reject_old_samples: false
|
reject_old_samples: false
|
||||||
retention_period: 1440h
|
|
||||||
ingestion_rate_mb: 16
|
ingestion_rate_mb: 16
|
||||||
ingestion_burst_size_mb: 32
|
ingestion_burst_size_mb: 32
|
||||||
max_query_parallelism: 32
|
max_query_parallelism: 32
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ prometheus:
|
|||||||
- targets: ['prom-a2s-exporter.counter-strike.svc:9841']
|
- targets: ['prom-a2s-exporter.counter-strike.svc:9841']
|
||||||
labels: {instance: master}
|
labels: {instance: master}
|
||||||
|
|
||||||
retention: "380d"
|
retention: "99999d"
|
||||||
retentionSize: "0"
|
retentionSize: "0"
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/hostname: master.tail2fe2d.ts.net
|
kubernetes.io/hostname: master.tail2fe2d.ts.net
|
||||||
|
|||||||
@@ -7,8 +7,6 @@ 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
|
||||||
@@ -18,7 +16,7 @@ spec:
|
|||||||
serviceAccountName: system-upgrade
|
serviceAccountName: system-upgrade
|
||||||
upgrade:
|
upgrade:
|
||||||
image: rancher/k3s-upgrade
|
image: rancher/k3s-upgrade
|
||||||
version: v1.35.4+k3s1
|
version: v1.35.2+k3s1
|
||||||
---
|
---
|
||||||
# Agent plan
|
# Agent plan
|
||||||
apiVersion: upgrade.cattle.io/v1
|
apiVersion: upgrade.cattle.io/v1
|
||||||
@@ -29,8 +27,6 @@ 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
|
||||||
@@ -43,4 +39,4 @@ spec:
|
|||||||
serviceAccountName: system-upgrade
|
serviceAccountName: system-upgrade
|
||||||
upgrade:
|
upgrade:
|
||||||
image: rancher/k3s-upgrade
|
image: rancher/k3s-upgrade
|
||||||
version: v1.35.4+k3s1
|
version: v1.35.2+k3s1
|
||||||
@@ -35,7 +35,7 @@ spec:
|
|||||||
terminationGracePeriodSeconds: 10
|
terminationGracePeriodSeconds: 10
|
||||||
containers:
|
containers:
|
||||||
- name: minecraft
|
- name: minecraft
|
||||||
image: 'eclipse-temurin:8-jdk-ubi10-minimal'
|
image: 'openjdk:8-jdk-alpine'
|
||||||
command: ["java"]
|
command: ["java"]
|
||||||
args:
|
args:
|
||||||
- -Xms4G
|
- -Xms4G
|
||||||
|
|||||||
Reference in New Issue
Block a user