Created
October 25, 2021 04:38
-
-
Save dennyabrain/bfb01368f15fec57dd5c195ba6ecdbbb to your computer and use it in GitHub Desktop.
Metabase on Kubernetes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: ConfigMap | |
apiVersion: v1 | |
metadata: | |
name: infrastructure-data-metabase | |
labels: | |
app.kubernetes.io/name: infrastructure-data-metabase | |
app.kubernetes.io/component: web | |
app.kubernetes.io/part-of: infrastructure | |
app.kubernetes.io/managed-by: tattle | |
data: | |
MB_DB_TYPE: mysql | |
MB_DB_DBNAME: metabase | |
MB_DB_PORT: "3306" | |
MB_DB_USER: XXXXXXXX | |
MB_DB_PASS: XXXXXXXX | |
MB_DB_HOST: XXXXXXXX |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: infrastructure-data-metabase | |
labels: | |
app.kubernetes.io/name: infrastructure-data-metabase | |
app.kubernetes.io/component: web | |
app.kubernetes.io/part-of: infrastructure | |
app.kubernetes.io/managed-by: tattle | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app.kubernetes.io/name: infrastructure-data-metabase | |
template: | |
metadata: | |
labels: | |
app.kubernetes.io/name: infrastructure-data-metabase | |
spec: | |
containers: | |
- name: infrastructure-data-metabase | |
image: metabase/metabase | |
imagePullPolicy: Always | |
ports: | |
- containerPort: 3000 | |
envFrom: | |
- configMapRef: | |
name: infrastructure-data-metabase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: infrastructure-data-metabase | |
labels: | |
app.kubernetes.io/name: infrastructure-data-metabase | |
app.kubernetes.io/component: web | |
app.kubernetes.io/part-of: infrastructure | |
app.kubernetes.io/managed-by: tattle | |
spec: | |
selector: | |
app.kubernetes.io/name: infrastructure-data-metabase | |
type: NodePort | |
ports: | |
- port: 80 | |
targetPort: 3000 | |
protocol: TCP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment