Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(minecraft): remove no longer needed bedrock standalone server #4459

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

tyriis
Copy link
Owner

@tyriis tyriis commented Feb 3, 2025

No description provided.

Copy link

sonarqubecloud bot commented Feb 3, 2025

@tyriis-automation
Copy link
Contributor

--- kubernetes/talos-flux/apps Kustomization: flux-system/apps-sync Kustomization: flux-system/apps-minecraft-bedrock-storage

+++ kubernetes/talos-flux/apps Kustomization: flux-system/apps-sync Kustomization: flux-system/apps-minecraft-bedrock-storage

@@ -1,32 +0,0 @@

----
-apiVersion: kustomize.toolkit.fluxcd.io/v1
-kind: Kustomization
-metadata:
-  labels:
-    kustomize.toolkit.fluxcd.io/name: apps-sync
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-    substitution.flux.home.arpa/enabled: 'true'
-  name: apps-minecraft-bedrock-storage
-  namespace: flux-system
-spec:
-  decryption:
-    provider: sops
-    secretRef:
-      name: sops-age
-  dependsOn:
-  - name: apps-rook-ceph-cluster
-  - name: apps-volsync
-  interval: 10m
-  path: ./kubernetes/talos-flux/apps/gaming/minecraft-bedrock/storage
-  postBuild:
-    substituteFrom:
-    - kind: ConfigMap
-      name: cluster-settings
-    - kind: Secret
-      name: cluster-secrets
-  prune: false
-  sourceRef:
-    kind: GitRepository
-    name: home-ops
-  wait: true
-
--- kubernetes/talos-flux/apps Kustomization: flux-system/apps-sync Kustomization: flux-system/apps-minecraft-bedrock

+++ kubernetes/talos-flux/apps Kustomization: flux-system/apps-sync Kustomization: flux-system/apps-minecraft-bedrock

@@ -1,34 +0,0 @@

----
-apiVersion: kustomize.toolkit.fluxcd.io/v1
-kind: Kustomization
-metadata:
-  annotations:
-    backstage.io/discovery: enabled
-    backstage.io/name: minecraft-bedrock
-  labels:
-    kustomize.toolkit.fluxcd.io/name: apps-sync
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-    substitution.flux.home.arpa/enabled: 'true'
-  name: apps-minecraft-bedrock
-  namespace: flux-system
-spec:
-  decryption:
-    provider: sops
-    secretRef:
-      name: sops-age
-  dependsOn:
-  - name: apps-minecraft-bedrock-storage
-  interval: 10m
-  path: ./kubernetes/talos-flux/apps/gaming/minecraft-bedrock/app
-  postBuild:
-    substituteFrom:
-    - kind: ConfigMap
-      name: cluster-settings
-    - kind: Secret
-      name: cluster-secrets
-  prune: false
-  sourceRef:
-    kind: GitRepository
-    name: home-ops
-  wait: true
-
--- kubernetes/talos-flux/apps/gaming/minecraft-bedrock/storage Kustomization: flux-system/apps-minecraft-bedrock-storage PersistentVolumeClaim: gaming/minecraft-bedrock-data

+++ kubernetes/talos-flux/apps/gaming/minecraft-bedrock/storage Kustomization: flux-system/apps-minecraft-bedrock-storage PersistentVolumeClaim: gaming/minecraft-bedrock-data

@@ -1,20 +0,0 @@

----
-apiVersion: v1
-kind: PersistentVolumeClaim
-metadata:
-  labels:
-    app.kubernetes.io/instance: minecraft-bedrock
-    app.kubernetes.io/name: minecraft-bedrock
-    kustomize.toolkit.fluxcd.io/name: apps-minecraft-bedrock-storage
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-    kustomize.toolkit.fluxcd.io/prune: disabled
-  name: minecraft-bedrock-data
-  namespace: gaming
-spec:
-  accessModes:
-  - ReadWriteOnce
-  resources:
-    requests:
-      storage: 10Gi
-  storageClassName: ceph-block
-
--- kubernetes/talos-flux/apps/gaming/minecraft-bedrock/app Kustomization: flux-system/apps-minecraft-bedrock HelmRelease: gaming/minecraft-bedrock

+++ kubernetes/talos-flux/apps/gaming/minecraft-bedrock/app Kustomization: flux-system/apps-minecraft-bedrock HelmRelease: gaming/minecraft-bedrock

@@ -1,138 +0,0 @@

----
-apiVersion: helm.toolkit.fluxcd.io/v2
-kind: HelmRelease
-metadata:
-  labels:
-    app.kubernetes.io/instance: minecraft-bedrock
-    app.kubernetes.io/name: minecraft-bedrock
-    app.kubernetes.io/part-of: minecraft-bedrock
-    kustomize.toolkit.fluxcd.io/name: apps-minecraft-bedrock
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: minecraft-bedrock
-  namespace: gaming
-spec:
-  chart:
-    spec:
-      chart: app-template
-      sourceRef:
-        kind: HelmRepository
-        name: bjw-s-charts
-        namespace: flux-system
-      version: 3.6.1
-  install:
-    createNamespace: true
-    remediation:
-      retries: 3
-  interval: 15m
-  upgrade:
-    remediation:
-      retries: 3
-  values:
-    controllers:
-      bedrock:
-        containers:
-          app:
-            env:
-              ALLOW_CHEATS: 'true'
-              DEFAULT_PLAYER_PERMISSION_LEVEL: member
-              DIFFICULTY: normal
-              EMIT_SERVER_TELEMETRY: 'false'
-              ENABLE_LAN_VISIBILITY: 'true'
-              EULA: 'true'
-              GAMEMODE: survival
-              LEVEL_NAME: mothersdayfun
-              LEVEL_SEED: '-103998222530161779'
-              LEVEL_TYPE: DEFAULT
-              MAX_PLAYERS: '10'
-              MAX_THREADS: '0'
-              MEMBERS: ''
-              ONLINE_MODE: 'true'
-              OPS: '2535405985178539'
-              PLAYER_IDLE_TIMEOUT: '30'
-              SERVER_NAME: home
-              TEXTUREPACK_REQUIRED: 'false'
-              TICK_DISTANCE: '4'
-              TZ: Europe/Vienna
-              VERSION: 1.21.30.03
-              VIEW_DISTANCE: '20'
-              VISITORS: ''
-              WHITE_LIST: ''
-              WHITE_LIST_USERS: ''
-            image:
-              repository: itzg/minecraft-bedrock-server
-              tag: latest@sha256:47e02029d0c7916c33dd138ae10dc6a4918fe235514e4f33ba6a443c6089fa9e
-            nameOverride: minecraft-bedrock
-            probes:
-              liveness:
-                custom: true
-                enabled: true
-                spec:
-                  exec:
-                    command:
-                    - mc-monitor
-                    - status-bedrock
-                    - --host
-                    - 127.0.0.1
-                  failureThreshold: 3
-                  initialDelaySeconds: 30
-                  periodSeconds: 10
-                  successThreshold: 1
-                  timeoutSeconds: 1
-                type: AUTO
-              readiness:
-                custom: true
-                enabled: true
-                spec:
-                  exec:
-                    command:
-                    - mc-monitor
-                    - status-bedrock
-                    - --host
-                    - 127.0.0.1
-                  failureThreshold: 3
-                  initialDelaySeconds: 30
-                  periodSeconds: 10
-                  successThreshold: 1
-                  timeoutSeconds: 1
-                type: AUTO
-              startup:
-                enabled: false
-            resources:
-              requests:
-                cpu: 250m
-                memory: 387Mi
-            securityContext:
-              allowPrivilegeEscalation: false
-              capabilities:
-                drop:
-                - ALL
-              readOnlyRootFilesystem: true
-        pod:
-          securityContext:
-            fsGroup: 2000
-            runAsGroup: 3000
-            runAsNonRoot: true
-            runAsUser: 1000
-            seccompProfile:
-              type: RuntimeDefault
-        replicas: 1
-    defaultPodOptions:
-      hostNetwork: true
-    persistence:
-      data:
-        existingClaim: minecraft-bedrock-data
-        globalMounts:
-        - path: /data
-        type: persistentVolumeClaim
-      tmp:
-        globalMounts:
-        - path: /tmp
-        type: emptyDir
-    service:
-      app:
-        controller: bedrock
-        ports:
-          minecraft:
-            port: 19132
-            protocol: UDP
-
--- kubernetes/talos-flux/apps/gaming/minecraft-bedrock/app Kustomization: flux-system/apps-minecraft-bedrock ReplicationSource: gaming/minecraft-bedrock-data

+++ kubernetes/talos-flux/apps/gaming/minecraft-bedrock/app Kustomization: flux-system/apps-minecraft-bedrock ReplicationSource: gaming/minecraft-bedrock-data

@@ -1,30 +0,0 @@

----
-apiVersion: volsync.backube/v1alpha1
-kind: ReplicationSource
-metadata:
-  labels:
-    app.kubernetes.io/instance: minecraft-bedrock
-    app.kubernetes.io/name: minecraft-bedrock
-    app.kubernetes.io/part-of: minecraft-bedrock
-    kustomize.toolkit.fluxcd.io/name: apps-minecraft-bedrock
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: minecraft-bedrock-data
-  namespace: gaming
-spec:
-  restic:
-    cacheCapacity: 10Gi
-    copyMethod: Snapshot
-    pruneIntervalDays: 14
-    repository: volsync-minecraft-bedrock-data
-    retain:
-      daily: 1
-      hourly: 1
-      monthly: 1
-      weekly: 1
-      yearly: 1
-    storageClassName: ceph-block
-    volumeSnapshotClassName: csi-ceph-blockpool
-  sourcePVC: minecraft-bedrock-data
-  trigger:
-    schedule: '*/30 * * * *'
-
--- kubernetes/talos-flux/apps/gaming/minecraft-bedrock/app Kustomization: flux-system/apps-minecraft-bedrock IngressRouteUDP: gaming/minecraft-bedrock

+++ kubernetes/talos-flux/apps/gaming/minecraft-bedrock/app Kustomization: flux-system/apps-minecraft-bedrock IngressRouteUDP: gaming/minecraft-bedrock

@@ -1,22 +0,0 @@

----
-apiVersion: traefik.io/v1alpha1
-kind: IngressRouteUDP
-metadata:
-  labels:
-    app.kubernetes.io/instance: minecraft-bedrock
-    app.kubernetes.io/name: minecraft-bedrock
-    app.kubernetes.io/part-of: minecraft-bedrock
-    kustomize.toolkit.fluxcd.io/name: apps-minecraft-bedrock
-    kustomize.toolkit.fluxcd.io/namespace: flux-system
-  name: minecraft-bedrock
-  namespace: gaming
-spec:
-  entryPoints:
-  - minecraft
-  routes:
-  - services:
-    - name: minecraft-bedrock
-      nativeLB: true
-      port: 19132
-      weight: 10
-

@tyriis-automation
Copy link
Contributor

--- HelmRelease: gaming/minecraft-bedrock Service: gaming/minecraft-bedrock

+++ HelmRelease: gaming/minecraft-bedrock Service: gaming/minecraft-bedrock

@@ -1,22 +0,0 @@

----
-apiVersion: v1
-kind: Service
-metadata:
-  name: minecraft-bedrock
-  labels:
-    app.kubernetes.io/instance: minecraft-bedrock
-    app.kubernetes.io/managed-by: Helm
-    app.kubernetes.io/name: minecraft-bedrock
-    app.kubernetes.io/service: minecraft-bedrock
-spec:
-  type: ClusterIP
-  ports:
-  - port: 19132
-    targetPort: 19132
-    protocol: UDP
-    name: minecraft
-  selector:
-    app.kubernetes.io/component: bedrock
-    app.kubernetes.io/instance: minecraft-bedrock
-    app.kubernetes.io/name: minecraft-bedrock
-
--- HelmRelease: gaming/minecraft-bedrock Deployment: gaming/minecraft-bedrock

+++ HelmRelease: gaming/minecraft-bedrock Deployment: gaming/minecraft-bedrock

@@ -1,141 +0,0 @@

----
-apiVersion: apps/v1
-kind: Deployment
-metadata:
-  name: minecraft-bedrock
-  labels:
-    app.kubernetes.io/component: bedrock
-    app.kubernetes.io/instance: minecraft-bedrock
-    app.kubernetes.io/managed-by: Helm
-    app.kubernetes.io/name: minecraft-bedrock
-spec:
-  revisionHistoryLimit: 3
-  replicas: 1
-  strategy:
-    type: Recreate
-  selector:
-    matchLabels:
-      app.kubernetes.io/component: bedrock
-      app.kubernetes.io/name: minecraft-bedrock
-      app.kubernetes.io/instance: minecraft-bedrock
-  template:
-    metadata:
-      labels:
-        app.kubernetes.io/component: bedrock
-        app.kubernetes.io/instance: minecraft-bedrock
-        app.kubernetes.io/name: minecraft-bedrock
-    spec:
-      enableServiceLinks: false
-      serviceAccountName: default
-      automountServiceAccountToken: true
-      securityContext:
-        fsGroup: 2000
-        runAsGroup: 3000
-        runAsNonRoot: true
-        runAsUser: 1000
-        seccompProfile:
-          type: RuntimeDefault
-      hostIPC: false
-      hostNetwork: true
-      hostPID: false
-      dnsPolicy: ClusterFirstWithHostNet
-      containers:
-      - env:
-        - name: ALLOW_CHEATS
-          value: 'true'
-        - name: DEFAULT_PLAYER_PERMISSION_LEVEL
-          value: member
-        - name: DIFFICULTY
-          value: normal
-        - name: EMIT_SERVER_TELEMETRY
-          value: 'false'
-        - name: ENABLE_LAN_VISIBILITY
-          value: 'true'
-        - name: EULA
-          value: 'true'
-        - name: GAMEMODE
-          value: survival
-        - name: LEVEL_NAME
-          value: mothersdayfun
-        - name: LEVEL_SEED
-          value: '-103998222530161779'
-        - name: LEVEL_TYPE
-          value: DEFAULT
-        - name: MAX_PLAYERS
-          value: '10'
-        - name: MAX_THREADS
-          value: '0'
-        - name: MEMBERS
-          value: ''
-        - name: ONLINE_MODE
-          value: 'true'
-        - name: OPS
-          value: '2535405985178539'
-        - name: PLAYER_IDLE_TIMEOUT
-          value: '30'
-        - name: SERVER_NAME
-          value: home
-        - name: TEXTUREPACK_REQUIRED
-          value: 'false'
-        - name: TICK_DISTANCE
-          value: '4'
-        - name: TZ
-          value: Europe/Vienna
-        - name: VERSION
-          value: 1.21.30.03
-        - name: VIEW_DISTANCE
-          value: '20'
-        - name: VISITORS
-          value: ''
-        - name: WHITE_LIST
-          value: ''
-        - name: WHITE_LIST_USERS
-          value: ''
-        image: itzg/minecraft-bedrock-server:latest@sha256:47e02029d0c7916c33dd138ae10dc6a4918fe235514e4f33ba6a443c6089fa9e
-        livenessProbe:
-          exec:
-            command:
-            - mc-monitor
-            - status-bedrock
-            - --host
-            - 127.0.0.1
-          failureThreshold: 3
-          initialDelaySeconds: 30
-          periodSeconds: 10
-          successThreshold: 1
-          timeoutSeconds: 1
-        name: minecraft-bedrock
-        readinessProbe:
-          exec:
-            command:
-            - mc-monitor
-            - status-bedrock
-            - --host
-            - 127.0.0.1
-          failureThreshold: 3
-          initialDelaySeconds: 30
-          periodSeconds: 10
-          successThreshold: 1
-          timeoutSeconds: 1
-        resources:
-          requests:
-            cpu: 250m
-            memory: 387Mi
-        securityContext:
-          allowPrivilegeEscalation: false
-          capabilities:
-            drop:
-            - ALL
-          readOnlyRootFilesystem: true
-        volumeMounts:
-        - mountPath: /data
-          name: data
-        - mountPath: /tmp
-          name: tmp
-      volumes:
-      - name: data
-        persistentVolumeClaim:
-          claimName: minecraft-bedrock-data
-      - emptyDir: {}
-        name: tmp
-

@tyriis tyriis merged commit 195377c into main Feb 3, 2025
16 checks passed
@tyriis tyriis deleted the feature/remove-minecraft-bedrock branch February 3, 2025 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant