Compare commits
4 Commits
71fc79e72a
...
b1bab0e37a
| Author | SHA1 | Date | |
|---|---|---|---|
| b1bab0e37a | |||
| 51acbbd54f | |||
| e26801182d | |||
| f487f5d23e |
@@ -1,38 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: argus
|
|
||||||
namespace: argus
|
|
||||||
labels:
|
|
||||||
app: argus
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: argus
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: argus
|
|
||||||
spec:
|
|
||||||
serviceAccountName: argus
|
|
||||||
containers:
|
|
||||||
- name: argus
|
|
||||||
image: releaseargus/argus:0.21.0
|
|
||||||
args:
|
|
||||||
- -config.file=/app/config/config.yml
|
|
||||||
ports:
|
|
||||||
- name: web
|
|
||||||
containerPort: 8080
|
|
||||||
volumeMounts:
|
|
||||||
- name: csismb-argus-config
|
|
||||||
mountPath: /app/config
|
|
||||||
- name: csismb-argus-data
|
|
||||||
mountPath: /app/data
|
|
||||||
volumes:
|
|
||||||
- name: csismb-argus-config
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: csismb-argus-config
|
|
||||||
- name: csismb-argus-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: csismb-argus-data
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
apiVersion: bitnami.com/v1alpha1
|
|
||||||
kind: SealedSecret
|
|
||||||
metadata:
|
|
||||||
creationTimestamp: null
|
|
||||||
name: smb-credentials
|
|
||||||
namespace: argus
|
|
||||||
spec:
|
|
||||||
encryptedData:
|
|
||||||
password: AgB8gU7Lj+Pn5B/oC8HtyKnKUzSvB7NRvxJOC2UmKjt3hj3pcRmfKrEh2khkcfSksb6x3f4ttIxYV2uFsXJfL4Wvi6zhsgvfgUHT12oD1/fuxD0LvHCm9otlGp8yyiQu5mPrFBd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bHU/KcWmlMqR1546QawsZAnohWaOIskqEBkG7nXx/eeYk7LVppP2TqdRtt+VfuvptXgfFhkOB2wUSOwqWH7OkQu/k3jtPR0FVJni+Hc1/+fKfuStwvEX+/1bdjZuS8DUGelOb1d/pXrHw+KypfzXcOoDaO31hJMQOEalXZc2GNJleAvLAxv34s8fFWKWvnEXqwYIaNwRPvX64GtencJwyFo/rdO/HH7gVIhA2DCDQwB0=
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
creationTimestamp: null
|
|
||||||
name: smb-credentials
|
|
||||||
namespace: argus
|
|
||||||
type: Opaque
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: argus
|
|
||||||
namespace: argus
|
|
||||||
spec:
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
name: web
|
|
||||||
port: 8080
|
|
||||||
selector:
|
|
||||||
app: argus
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: argus
|
|
||||||
namespace: argus
|
|
||||||
labels:
|
|
||||||
app: argus
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: argus
|
name: bedrockservermanager
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: argus
|
name: bedrockservermanager
|
||||||
namespace: argo-cd
|
namespace: argo-cd
|
||||||
spec:
|
spec:
|
||||||
destination:
|
destination:
|
||||||
namespace: argus
|
namespace: bedrockservermanager
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
project: default
|
project: default
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
@@ -14,5 +14,5 @@ spec:
|
|||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://code.spamasaurus.com/djpbessems/Kubernetes.K3s.installLog
|
- repoURL: https://code.spamasaurus.com/djpbessems/Kubernetes.K3s.installLog
|
||||||
path: services/Argus
|
path: services/bedrockservermanager
|
||||||
targetRevision: HEAD
|
targetRevision: HEAD
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: bedrockservermanager
|
||||||
|
namespace: bedrockservermanager
|
||||||
|
labels:
|
||||||
|
app: bedrockservermanager
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: bedrockservermanager
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: bedrockservermanager
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: bedrockservermanager
|
||||||
|
# image: ghcr.io/dmedina559/bedrock-server-manager:stable
|
||||||
|
image: ghcr.io/dmedina559/bedrock-server-manager:3.7.1a2
|
||||||
|
ports:
|
||||||
|
- name: web
|
||||||
|
containerPort: 11325
|
||||||
|
- name: mc
|
||||||
|
containerPort: 19132
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /root/.config/bedrock-server-manager
|
||||||
|
name: csismb-bedrockservermanager-config
|
||||||
|
- mountPath: /root/bedrock-server-manager
|
||||||
|
name: csismb-bedrockservermanager-data
|
||||||
|
volumes:
|
||||||
|
- name: csismb-bedrockservermanager-config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: csismb-bedrockservermanager-config
|
||||||
|
- name: csismb-bedrockservermanager-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: csismb-bedrockservermanager-data
|
||||||
@@ -1,18 +1,17 @@
|
|||||||
apiVersion: traefik.io/v1alpha1
|
apiVersion: traefik.io/v1alpha1
|
||||||
kind: IngressRoute
|
kind: IngressRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: argus
|
name: bedrockservermanager
|
||||||
namespace: argus
|
namespace: bedrockservermanager
|
||||||
spec:
|
spec:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- websecure
|
- websecure
|
||||||
routes:
|
routes:
|
||||||
- match: Host(`release.spamasaurus.com`)
|
- match: Host(`mc.spamasaurus.com`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: argus
|
- name: bedrockservermanager
|
||||||
port: 8080
|
port: 11325
|
||||||
middlewares:
|
middlewares:
|
||||||
- name: 2fa-authentication@file
|
|
||||||
- name: security-headers@file
|
- name: security-headers@file
|
||||||
# - name: compression@file
|
# - name: compression@file
|
||||||
@@ -3,14 +3,14 @@ kind: PersistentVolume
|
|||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
pv.kubernetes.io/provisioned-by: smb.csi.k8s.io
|
pv.kubernetes.io/provisioned-by: smb.csi.k8s.io
|
||||||
name: csismb-argus-data
|
name: csismb-bedrockservermanager-config
|
||||||
spec:
|
spec:
|
||||||
capacity:
|
capacity:
|
||||||
storage: 1Gi
|
storage: 1Gi
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
persistentVolumeReclaimPolicy: Retain
|
persistentVolumeReclaimPolicy: Retain
|
||||||
storageClassName: csismb-argus-data
|
storageClassName: csismb-bedrockservermanager-config
|
||||||
mountOptions:
|
mountOptions:
|
||||||
- dir_mode=0777
|
- dir_mode=0777
|
||||||
- file_mode=0777
|
- file_mode=0777
|
||||||
@@ -22,10 +22,10 @@ spec:
|
|||||||
driver: smb.csi.k8s.io
|
driver: smb.csi.k8s.io
|
||||||
# volumeHandle format: {smb-server-address}#{sub-dir-name}#{share-name}
|
# volumeHandle format: {smb-server-address}#{sub-dir-name}#{share-name}
|
||||||
# make sure this value is unique for every share in the cluster
|
# make sure this value is unique for every share in the cluster
|
||||||
volumeHandle: 192.168.154.195#argus#data
|
volumeHandle: 192.168.154.195#bedrockservermanager#config
|
||||||
volumeAttributes:
|
volumeAttributes:
|
||||||
source: //192.168.154.195/K3s.Volumes
|
source: //192.168.154.195/K3s.Volumes
|
||||||
subDir: argus/data
|
subDir: bedrockservermanager/config
|
||||||
nodeStageSecretRef:
|
nodeStageSecretRef:
|
||||||
name: smb-credentials
|
name: smb-credentials
|
||||||
namespace: argus
|
namespace: bedrockservermanager
|
||||||
@@ -3,14 +3,14 @@ kind: PersistentVolume
|
|||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
pv.kubernetes.io/provisioned-by: smb.csi.k8s.io
|
pv.kubernetes.io/provisioned-by: smb.csi.k8s.io
|
||||||
name: csismb-argus-config
|
name: csismb-bedrockservermanager-data
|
||||||
spec:
|
spec:
|
||||||
capacity:
|
capacity:
|
||||||
storage: 1Gi
|
storage: 1Gi
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
persistentVolumeReclaimPolicy: Retain
|
persistentVolumeReclaimPolicy: Retain
|
||||||
storageClassName: csismb-argus-config
|
storageClassName: csismb-bedrockservermanager-data
|
||||||
mountOptions:
|
mountOptions:
|
||||||
- dir_mode=0777
|
- dir_mode=0777
|
||||||
- file_mode=0777
|
- file_mode=0777
|
||||||
@@ -22,10 +22,10 @@ spec:
|
|||||||
driver: smb.csi.k8s.io
|
driver: smb.csi.k8s.io
|
||||||
# volumeHandle format: {smb-server-address}#{sub-dir-name}#{share-name}
|
# volumeHandle format: {smb-server-address}#{sub-dir-name}#{share-name}
|
||||||
# make sure this value is unique for every share in the cluster
|
# make sure this value is unique for every share in the cluster
|
||||||
volumeHandle: 192.168.154.195#argus#config
|
volumeHandle: 192.168.154.195#bedrockservermanager#data
|
||||||
volumeAttributes:
|
volumeAttributes:
|
||||||
source: //192.168.154.195/K3s.Volumes
|
source: //192.168.154.195/K3s.Volumes
|
||||||
subDir: argus/config
|
subDir: bedrockservermanager/data
|
||||||
nodeStageSecretRef:
|
nodeStageSecretRef:
|
||||||
name: smb-credentials
|
name: smb-credentials
|
||||||
namespace: argus
|
namespace: bedrockservermanager
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: csismb-argus-data
|
name: csismb-bedrockservermanager-config
|
||||||
namespace: argus
|
namespace: bedrockservermanager
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
storageClassName: csismb-argus-data
|
storageClassName: csismb-bedrockservermanager-config
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 1Gi
|
storage: 1Gi
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: csismb-argus-config
|
name: csismb-bedrockservermanager-data
|
||||||
namespace: argus
|
namespace: bedrockservermanager
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
storageClassName: csismb-argus-config
|
storageClassName: csismb-bedrockservermanager-data
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 1Gi
|
storage: 1Gi
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
apiVersion: bitnami.com/v1alpha1
|
||||||
|
kind: SealedSecret
|
||||||
|
metadata:
|
||||||
|
name: smb-credentials
|
||||||
|
namespace: bedrockservermanager
|
||||||
|
spec:
|
||||||
|
encryptedData:
|
||||||
|
password: AgAUxKVMBkGZeLu1XablLg9UuP9Jj6Od7phWEhXzyEdT5UB6ZNRlmi07k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aM6rBlj1ad0bvPFtgzjPXdF3bgalIR0xzfuVaxcOe7FU7wG/6XICaJ3ka3fxV0EuBBJ2zA4vvElCe/LLK0YbkgdznFh4LypE0wnvqtEoE90S8i5n6UifAaHKHkAuJ0f952bqxz4FEb3CFohlrWqZnml0j+JK/UJFG3ItFtnOJEuVq7+4YBNxS6TNrdD1KyQHqT1BFC7pGCk1r+TSM7AASwa1vFnHAMv9g0vpVpDlfT20rXewZxcg/9+E4R4o29RsuNqdL/mn7a4bm9u/+ll7IQSkwpVvkbw5HBGGebCRTJkAhAYL2j6noedeoc=
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
name: smb-credentials
|
||||||
|
namespace: bedrockservermanager
|
||||||
|
type: Opaque
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: bedrockservermanager-mc
|
||||||
|
namespace: bedrockservermanager
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
ports:
|
||||||
|
- protocol: UDP
|
||||||
|
name: mc
|
||||||
|
port: 19132
|
||||||
|
selector:
|
||||||
|
app: bedrockservermanager
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: bedrockservermanager
|
||||||
|
namespace: bedrockservermanager
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
name: web
|
||||||
|
port: 11325
|
||||||
|
selector:
|
||||||
|
app: bedrockservermanager
|
||||||
@@ -28,4 +28,4 @@ spec:
|
|||||||
subDir: ddclient/config
|
subDir: ddclient/config
|
||||||
nodeStageSecretRef:
|
nodeStageSecretRef:
|
||||||
name: smb-credentials
|
name: smb-credentials
|
||||||
namespace: argus
|
namespace: ddclient
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ spec:
|
|||||||
entryPoints:
|
entryPoints:
|
||||||
- websecure
|
- websecure
|
||||||
routes:
|
routes:
|
||||||
- match: Host(`bessems.com`) || Host(`bessems.eu`) || Host(`gabaldon.eu`) || Host(`gabaldon.nl`) || Host(`sn.itch.fyi`) || Host(`spamasaurus.com`)
|
- match: Host(`bessems.com`) || Host(`bessems.eu`) || Host(`gabaldon.eu`) || Host(`gabaldon.nl`) || Host(`spamasaurus.com`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: lighttpd
|
- name: lighttpd
|
||||||
|
|||||||
@@ -1,57 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: kubectl-rolloutrestart
|
|
||||||
namespace: pvr
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRole
|
|
||||||
metadata:
|
|
||||||
name: kubectl-rolloutrestart
|
|
||||||
namespace: pvr
|
|
||||||
rules:
|
|
||||||
- apiGroups: ["apps", "extensions"]
|
|
||||||
resources: ["deployments", "statefulsets"]
|
|
||||||
verbs: ["get", "list", "patch"]
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: RoleBinding
|
|
||||||
metadata:
|
|
||||||
name: kubectl-rolloutrestart-pvr
|
|
||||||
namespace: pvr
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: ClusterRole
|
|
||||||
name: kubectl-rolloutrestart
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: kubectl-rolloutrestart
|
|
||||||
namespace: pvr
|
|
||||||
---
|
|
||||||
apiVersion: batch/v1
|
|
||||||
kind: CronJob
|
|
||||||
metadata:
|
|
||||||
name: kubectl-rolloutrestart
|
|
||||||
namespace: pvr
|
|
||||||
spec:
|
|
||||||
concurrencyPolicy: Forbid
|
|
||||||
failedJobsHistoryLimit: 1
|
|
||||||
successfulJobsHistoryLimit: 1
|
|
||||||
schedule: '30 2 * * *'
|
|
||||||
jobTemplate:
|
|
||||||
spec:
|
|
||||||
backoffLimit: 2
|
|
||||||
activeDeadlineSeconds: 600
|
|
||||||
template:
|
|
||||||
spec:
|
|
||||||
serviceAccountName: kubectl-rolloutrestart
|
|
||||||
restartPolicy: Never
|
|
||||||
containers:
|
|
||||||
- name: kubectl
|
|
||||||
image: bitnami/kubectl
|
|
||||||
command:
|
|
||||||
- '/bin/bash'
|
|
||||||
- '-c'
|
|
||||||
args:
|
|
||||||
- for workload in `kubectl get deployments -n pvr --no-headers | cut -d " " -f 1`; do kubectl rollout restart deployment -n pvr $workload; done;
|
|
||||||
for workload in `kubectl get statefulsets -n pvr --no-headers | cut -d " " -f 1`; do kubectl rollout restart statefulsets -n pvr $workload; done;
|
|
||||||
Reference in New Issue
Block a user