murmur.yml 1.8 KB
Newer Older
Bence Nagy's avatar
Bence Nagy committed
1 2 3 4 5
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: murmur-db-pvc
6
  namespace: mumble
Bence Nagy's avatar
Bence Nagy committed
7 8 9 10 11
  labels:
    app: murmur
spec:
  storageClassName: rook-ceph-block
  accessModes:
12
    - ReadWriteOnce
Bence Nagy's avatar
Bence Nagy committed
13 14
  resources:
    requests:
15
      storage: 100Mi
Bence Nagy's avatar
Bence Nagy committed
16 17 18 19 20 21 22 23 24 25
---
kind: Deployment
apiVersion: apps/v1beta2
metadata:
  name: murmur
  namespace: mumble
  labels:
    app: murmur
spec:
  replicas: 1
26 27
  strategy:
    type: Recreate
Bence Nagy's avatar
Bence Nagy committed
28 29 30 31 32 33 34 35 36
  selector:
    matchLabels:
      app: murmur
  template:
    metadata:
      labels:
        app: murmur
    spec:
      containers:
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
        - name: app
          image: mattikus/murmur:v1.2.19
          command:
            [
              "/opt/murmur/murmur.x86",
              "-fg",
              "-v",
              "-ini",
              "/etc/murmur/murmur.ini",
            ]
          ports:
            - containerPort: 64738
              hostPort: 64738
            - containerPort: 64738
              hostPort: 64738
              protocol: UDP
          volumeMounts:
            - name: murmur-db
              mountPath: /db
            - name: murmur-config
              mountPath: /etc/murmur
              readOnly: true
          livenessProbe:
            tcpSocket:
              port: 64738
            initialDelaySeconds: 30
            periodSeconds: 30
64 65 66 67 68 69 70
          resources:
            limits:
              cpu: 100m
              memory: 64Mi
            requests:
              cpu: 20m
              memory: 8Mi
71
      volumes:
Bence Nagy's avatar
Bence Nagy committed
72
        - name: murmur-db
73 74
          persistentVolumeClaim:
            claimName: murmur-db-pvc
Bence Nagy's avatar
Bence Nagy committed
75
        - name: murmur-config
76 77
          configMap:
            name: murmur-config
Bence Nagy's avatar
Bence Nagy committed
78 79 80 81 82 83 84 85 86 87 88 89 90
---
kind: Service
apiVersion: v1
metadata:
  name: murmur-svc
  namespace: mumble
spec:
  ports:
    - name: mumble
      port: 64738
      targetPort: 64738
  selector:
    app: murmur