feat: Add Kubernetes manifests for NetHack server

- Creates Kubernetes deployment, service, and PVC manifests to run a multiplayer NetHack server.
- Uses the pre-built matsuu/nethack-server:latest image.
- Configures the service to expose port 4000 externally and correctly route traffic to the container's port 23.
- Adds a .gitignore file to exclude temporary directories.
This commit is contained in:
capitano
2025-11-18 23:13:13 +01:00
parent 5161bfa5d9
commit 50d14d97ed
5 changed files with 108 additions and 0 deletions

13
k8s/service.yaml Normal file
View File

@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: nethack-service
namespace: nethack
spec:
type: LoadBalancer
selector:
app: nethack
ports:
- protocol: TCP
port: 4000
targetPort: 23