diff --git a/k8s/games/beam-ng/app.yaml b/k8s/games/beam-ng/app.yaml new file mode 100644 index 0000000..eaf084e --- /dev/null +++ b/k8s/games/beam-ng/app.yaml @@ -0,0 +1,21 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: beam-ng + namespace: argocd +spec: + project: games + destination: + namespace: beam-ng + server: https://kubernetes.default.svc + source: + repoURL: ssh://git@gt.hexor.cy:30022/ab/homelab.git + targetRevision: HEAD + path: k8s/games/beam-ng + syncPolicy: + automated: + selfHeal: true + prune: true + syncOptions: + - CreateNamespace=true + diff --git a/k8s/games/beam-ng/deployments.yaml b/k8s/games/beam-ng/deployments.yaml new file mode 100644 index 0000000..8223e91 --- /dev/null +++ b/k8s/games/beam-ng/deployments.yaml @@ -0,0 +1,39 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: beam-ng + labels: + app: beam-ng +spec: + selector: + matchLabels: + app: beam-ng + replicas: 1 + strategy: + type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 0 + template: + metadata: + labels: + app: beam-ng + spec: + nodeSelector: + storage: 'remote' + containers: + - name: beam-ng + image: 'rouhim/beammp-server' + env: + - name: BEAMMP_NAME + value: 'Anal Hexor' + - name: BEAMMP_AUTH_KEY + value: '1488_228' + ports: + - name: udp + containerPort: 30814 + protocol: UDP + - containerPort: 30814 + name: tcp + protocol: TCP diff --git a/k8s/games/beam-ng/kustomization.yaml b/k8s/games/beam-ng/kustomization.yaml new file mode 100644 index 0000000..cef3f9b --- /dev/null +++ b/k8s/games/beam-ng/kustomization.yaml @@ -0,0 +1,8 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - app.yaml + - deployments.yaml + - services.yaml + diff --git a/k8s/games/beam-ng/services.yaml b/k8s/games/beam-ng/services.yaml new file mode 100644 index 0000000..3784c06 --- /dev/null +++ b/k8s/games/beam-ng/services.yaml @@ -0,0 +1,20 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: beam-ng +spec: + externalIPs: + - 192.168.122.236 + selector: + app: beam-ng + ports: + - protocol: TCP + name: tcp + port: 30814 + targetPort: 30814 + - protocol: UDP + name: udp + port: 30814 + targetPort: 30814 +