generated from onedr0p/cluster-template
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
383843e
commit 45159d6
Showing
8 changed files
with
189 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
# yaml-language-server: $schema=https://kube-schemas.pages.dev/externaldns.k8s.io/dnsendpoint_v1alpha1.json | ||
apiVersion: externaldns.k8s.io/v1alpha1 | ||
kind: DNSEndpoint | ||
metadata: | ||
name: abiotic | ||
spec: | ||
endpoints: | ||
- dnsName: "abiotic.${SECRET_DOMAIN}" | ||
recordType: CNAME | ||
targets: ["ipv4.${SECRET_DOMAIN}"] | ||
providerSpecific: | ||
- name: external-dns.alpha.kubernetes.io/cloudflare-proxied | ||
value: 'false' |
19 changes: 19 additions & 0 deletions
19
kubernetes/main/apps/games/abiotic/app/externalsecret.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
# yaml-language-server: $schema=https://kube-schemas.pages.dev/external-secrets.io/externalsecret_v1beta1.json | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: &name abiotic-secret | ||
spec: | ||
secretStoreRef: | ||
kind: ClusterSecretStore | ||
name: onepassword-connect | ||
target: | ||
name: *name | ||
template: | ||
engineVersion: v2 | ||
data: | ||
ServerPassword: "{{ .SERVER_PASSWORD }}" | ||
dataFrom: | ||
- extract: | ||
key: abiotic |
106 changes: 106 additions & 0 deletions
106
kubernetes/main/apps/games/abiotic/app/helmrelease.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: &app abiotic | ||
spec: | ||
interval: 30m | ||
chart: | ||
spec: | ||
chart: app-template | ||
version: 3.5.1 | ||
sourceRef: | ||
kind: HelmRepository | ||
name: bjw-s | ||
namespace: flux-system | ||
install: | ||
remediation: | ||
retries: 3 | ||
upgrade: | ||
cleanupOnFail: true | ||
remediation: | ||
strategy: rollback | ||
retries: 3 | ||
dependsOn: | ||
- name: rook-ceph-cluster | ||
namespace: rook-ceph | ||
- name: volsync | ||
namespace: storage | ||
values: | ||
controllers: | ||
abiotic: | ||
annotations: | ||
reloader.stakater.com/auto: "true" | ||
containers: | ||
app: | ||
image: | ||
repository: ghcr.io/pleut/abiotic-factor-linux-docker | ||
tag: latest #yuck | ||
env: | ||
## Container Settings | ||
TZ: ${TIMEZONE} | ||
MaxServerPlayers: 6 | ||
Port: &port 7777 | ||
QueryPort: &queryport 27015 | ||
SteamServerName: Noods | ||
UsePerfThreads: true | ||
NoAsyncLoadingThread: true | ||
WorldSaveName: Noods | ||
AutoUpdate: true | ||
# AdditionalArgs: -placeholder=true | ||
envFrom: | ||
- secretRef: | ||
name: abiotic-secret | ||
probes: | ||
liveness: &disabled | ||
enabled: false | ||
readiness: *disabled | ||
startup: *disabled | ||
resources: | ||
requests: | ||
cpu: 500m | ||
limits: | ||
memory: 4Gi | ||
# defaultPodOptions: | ||
# securityContext: | ||
# runAsNonRoot: true | ||
# runAsUser: 1000 | ||
# runAsGroup: 100 | ||
# fsGroup: 100 | ||
# fsGroupChangePolicy: OnRootMismatch | ||
# seccompProfile: { type: RuntimeDefault } | ||
service: | ||
app: | ||
controller: *app | ||
type: LoadBalancer | ||
annotations: | ||
lbipam.cilium.io/ips: ${SVC_ABIOTIC_ADDR:=temp} | ||
ports: | ||
game: | ||
protocol: UDP | ||
port: *port | ||
query: | ||
protocol: UDP | ||
port: *queryport | ||
# ingress: | ||
# app: | ||
# enabled: false #nginx doesn't support non-https | ||
# className: external | ||
# annotations: | ||
# external-dns.alpha.kubernetes.io/target: ipv4.${SECRET_DOMAIN} | ||
# hosts: | ||
# - host: "{{ .Release.Name }}.${SECRET_DOMAIN}" | ||
# paths: | ||
# - path: / | ||
# service: | ||
# identifier: app | ||
# port: game | ||
persistence: | ||
config: | ||
existingClaim: *app | ||
globalMounts: | ||
- path: /server/AbioticFactor/Saved | ||
files: | ||
existingClaim: abiotic-server-files | ||
globalMounts: | ||
- path: /server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./dnsendpoint.yaml | ||
- ./externalsecret.yaml | ||
- ./helmrelease.yaml | ||
- ./pvc.yaml | ||
- ../../../../../shared/templates/volsync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: abiotic-server-files | ||
spec: | ||
accessModes: ["ReadWriteOnce"] | ||
resources: | ||
requests: | ||
storage: 5Gi | ||
storageClassName: ceph-block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# yaml-language-server: $schema=https://kube-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: &app abiotic | ||
namespace: flux-system | ||
spec: | ||
targetNamespace: games | ||
commonMetadata: | ||
labels: | ||
app.kubernetes.io/name: *app | ||
path: ./kubernetes/main/apps/games/abiotic/app | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: home-kubernetes | ||
wait: false # no flux ks dependents | ||
interval: 30m | ||
timeout: 5m | ||
postBuild: | ||
substitute: | ||
APP: *app | ||
VOLSYNC_CAPACITY: 50Gi | ||
VOLSYNC_UID: "1000" | ||
VOLSYNC_GID: "100" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters