aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/tooling/metabase/deployment.yaml
blob: d55ac225eb49d59109471c7aa956a8d703688676 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
apiVersion: apps/v1
kind: Deployment
metadata:
  name: metabase
  namespace: tooling
spec:
  replicas: 1
  selector:
    matchLabels:
      app: metabase
  template:
    metadata:
      labels:
        app: metabase
    spec:
      securityContext:
        fsGroup: 2000
        runAsUser: 1000
        runAsNonRoot: true
      containers:
        - name: metabase
          image: metabase/metabase:latest
          imagePullPolicy: Always
          ports:
            - containerPort: 3000
          envFrom:
            - secretRef:
                name: metabase-env
          volumeMounts:
            - mountPath: /plugins
              name: mb-plugins-volume
          securityContext:
            readOnlyRootFilesystem: true
      volumes:
        - name: mb-plugins-volume
          emptyDir: {}