diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-17 15:25:52 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-17 15:25:52 +0300 |
| commit | 914bd7cd6aa14e839332a98d91c30b19865b0cf2 (patch) | |
| tree | 02b11537237a204048589e14ed24938b805e42f7 /k8s | |
| parent | 3b24f0e1be832584d6550e8cc3e5d24329f66f90 (diff) | |
Restructure repo: move Go server into player-server/
Diffstat (limited to 'k8s')
| -rw-r--r-- | k8s/deployment.yaml | 73 | ||||
| -rw-r--r-- | k8s/pvc-db.yaml | 12 | ||||
| -rw-r--r-- | k8s/pvc-media.yaml | 12 | ||||
| -rw-r--r-- | k8s/secret.yaml | 10 | ||||
| -rw-r--r-- | k8s/service.yaml | 14 |
5 files changed, 0 insertions, 121 deletions
diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml deleted file mode 100644 index 56bc11b..0000000 --- a/k8s/deployment.yaml +++ /dev/null @@ -1,73 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: player - labels: - app: player -spec: - replicas: 1 - selector: - matchLabels: - app: player - template: - metadata: - labels: - app: player - spec: - securityContext: - runAsNonRoot: true - fsGroup: 65534 - containers: - - name: app - image: player:latest - imagePullPolicy: IfNotPresent - securityContext: - runAsUser: 65534 - runAsGroup: 65534 - allowPrivilegeEscalation: false - readOnlyRootFilesystem: true - ports: - - containerPort: 8080 - name: http - envFrom: - - secretRef: - name: player-secret - optional: true - env: - - name: PORT - value: "8080" - - name: DB_PATH - value: "/data/media.db" - - name: MEDIA_ROOT - value: "/media" - livenessProbe: - httpGet: - path: /healthz - port: http - initialDelaySeconds: 5 - periodSeconds: 10 - readinessProbe: - httpGet: - path: /readyz - port: http - initialDelaySeconds: 3 - periodSeconds: 5 - volumeMounts: - - name: data - mountPath: /data - - name: media - mountPath: /media - resources: - requests: - memory: "128Mi" - cpu: "100m" - limits: - memory: "512Mi" - cpu: "1000m" - volumes: - - name: data - persistentVolumeClaim: - claimName: player-db - - name: media - persistentVolumeClaim: - claimName: player-media diff --git a/k8s/pvc-db.yaml b/k8s/pvc-db.yaml deleted file mode 100644 index 3328172..0000000 --- a/k8s/pvc-db.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: player-db - labels: - app: player -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 1Gi diff --git a/k8s/pvc-media.yaml b/k8s/pvc-media.yaml deleted file mode 100644 index f75e5df..0000000 --- a/k8s/pvc-media.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: player-media - labels: - app: player -spec: - accessModes: - - ReadWriteMany - resources: - requests: - storage: 10Gi diff --git a/k8s/secret.yaml b/k8s/secret.yaml deleted file mode 100644 index bbde6dd..0000000 --- a/k8s/secret.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: player-secret - labels: - app: player -type: Opaque -stringData: - # Set this to the desired admin password before applying. - ADMIN_PASSWORD: "changeme" diff --git a/k8s/service.yaml b/k8s/service.yaml deleted file mode 100644 index bf0cbd9..0000000 --- a/k8s/service.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: player - labels: - app: player -spec: - type: ClusterIP - selector: - app: player - ports: - - port: 8080 - targetPort: http - name: http |
