49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
kompose.cmd: kompose convert
|
|
kompose.version: 1.33.0 (3ce457399)
|
|
labels:
|
|
io.kompose.service: grafanatesla
|
|
name: grafana
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
io.kompose.service: grafanatesla
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
kompose.cmd: kompose convert
|
|
kompose.version: 1.33.0 (3ce457399)
|
|
labels:
|
|
io.kompose.network/teslamate-default: "true"
|
|
io.kompose.service: grafanatesla
|
|
spec:
|
|
containers:
|
|
- env:
|
|
- name: DATABASE_HOST
|
|
value: database
|
|
- name: DATABASE_NAME
|
|
value: teslamate
|
|
- name: DATABASE_PASS
|
|
value: ganopacha007
|
|
- name: DATABASE_USER
|
|
value: teslamate
|
|
image: teslamate/grafana:latest
|
|
name: grafanatesla
|
|
ports:
|
|
- containerPort: 3000
|
|
hostPort: 3010
|
|
protocol: TCP
|
|
volumeMounts:
|
|
- mountPath: /var/lib/grafana
|
|
name: teslamate-grafana-data
|
|
restartPolicy: Always
|
|
volumes:
|
|
- name: teslamate-grafana-data
|
|
persistentVolumeClaim:
|
|
claimName: teslamate-grafana-data
|