Compare commits
10 Commits
auto-updat
...
auto-updat
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
adf4c7764b | ||
| 7d322103cf | |||
| f7e763b3c2 | |||
|
|
69fff5bc1f | ||
| 75a61a1889 | |||
| 06ec36d718 | |||
|
|
b9ef38374c | ||
| 6fb63b7cb9 | |||
| f56278c907 | |||
| 1dfbb27bd2 |
@@ -62,9 +62,11 @@ 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) |
|
||||||
|
| **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>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ spec:
|
|||||||
mountPath: /templates/subscription
|
mountPath: /templates/subscription
|
||||||
containers:
|
containers:
|
||||||
- name: pasarguard-web
|
- name: pasarguard-web
|
||||||
image: 'pasarguard/panel:latest'
|
image: 'pasarguard/panel:dev'
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
|
|||||||
20
k8s/apps/teamspeak/app.yaml
Normal file
20
k8s/apps/teamspeak/app.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
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
|
||||||
49
k8s/apps/teamspeak/deployment.yaml
Normal file
49
k8s/apps/teamspeak/deployment.yaml
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
---
|
||||||
|
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
|
||||||
8
k8s/apps/teamspeak/kustomization.yaml
Normal file
8
k8s/apps/teamspeak/kustomization.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- app.yaml
|
||||||
|
- storage.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
22
k8s/apps/teamspeak/service.yaml
Normal file
22
k8s/apps/teamspeak/service.yaml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
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
|
||||||
12
k8s/apps/teamspeak/storage.yaml
Normal file
12
k8s/apps/teamspeak/storage.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: teamspeak-data
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
20
k8s/apps/wedding/app.yaml
Normal file
20
k8s/apps/wedding/app.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
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
|
||||||
60
k8s/apps/wedding/deployment.yaml
Normal file
60
k8s/apps/wedding/deployment.yaml
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: wedding
|
||||||
|
labels:
|
||||||
|
app: wedding
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: wedding
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: wedding
|
||||||
|
spec:
|
||||||
|
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.19.2
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- cd /src && zola build --output-dir /public
|
||||||
|
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
|
||||||
|
readOnly: true
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 32Mi
|
||||||
|
cpu: 10m
|
||||||
|
limits:
|
||||||
|
memory: 64Mi
|
||||||
|
cpu: 100m
|
||||||
|
volumes:
|
||||||
|
- name: source
|
||||||
|
emptyDir: {}
|
||||||
|
- name: public
|
||||||
|
emptyDir: {}
|
||||||
26
k8s/apps/wedding/ingress.yaml
Normal file
26
k8s/apps/wedding/ingress.yaml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
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
|
||||||
9
k8s/apps/wedding/kustomization.yaml
Normal file
9
k8s/apps/wedding/kustomization.yaml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- app.yaml
|
||||||
|
- rbac.yaml
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
42
k8s/apps/wedding/rbac.yaml
Normal file
42
k8s/apps/wedding/rbac.yaml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
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
|
||||||
12
k8s/apps/wedding/service.yaml
Normal file
12
k8s/apps/wedding/service.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: wedding
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: wedding
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
targetPort: 80
|
||||||
|
protocol: TCP
|
||||||
@@ -21,7 +21,6 @@ spec:
|
|||||||
- "*.hexor.ru"
|
- "*.hexor.ru"
|
||||||
- "*.btwiusearch.net"
|
- "*.btwiusearch.net"
|
||||||
- "hexor.ru"
|
- "hexor.ru"
|
||||||
- "hexor.cy"
|
|
||||||
- "btwiusearch.net"
|
- "btwiusearch.net"
|
||||||
- dns01:
|
- dns01:
|
||||||
route53:
|
route53:
|
||||||
@@ -35,4 +34,5 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
dnsZones:
|
dnsZones:
|
||||||
- "*.hexor.cy"
|
- "*.hexor.cy"
|
||||||
|
- "hexor.cy"
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ loki:
|
|||||||
rules_directory: /var/loki/rules
|
rules_directory: /var/loki/rules
|
||||||
compactor:
|
compactor:
|
||||||
retention_enabled: true
|
retention_enabled: true
|
||||||
|
delete_request_store: filesystem
|
||||||
limits_config:
|
limits_config:
|
||||||
reject_old_samples: false
|
reject_old_samples: false
|
||||||
retention_period: 1440h
|
retention_period: 1440h
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ spec:
|
|||||||
terminationGracePeriodSeconds: 10
|
terminationGracePeriodSeconds: 10
|
||||||
containers:
|
containers:
|
||||||
- name: minecraft
|
- name: minecraft
|
||||||
image: 'openjdk:8-jdk-alpine'
|
image: 'eclipse-temurin:8-jdk-ubi10-minimal'
|
||||||
command: ["java"]
|
command: ["java"]
|
||||||
args:
|
args:
|
||||||
- -Xms4G
|
- -Xms4G
|
||||||
|
|||||||
Reference in New Issue
Block a user