This commit is contained in:
ducoterra
2020-05-19 21:21:50 -04:00
commit c70b422bef
5 changed files with 112 additions and 0 deletions

33
k8s/deploy.yaml Normal file
View File

@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: grafana
spec:
replicas: 1
selector:
matchLabels:
app: grafana
template:
metadata:
labels:
app: grafana
spec:
containers:
- name: grafana
image: grafana/grafana
resources:
requests:
memory: 256Mi
cpu: 100m
limits:
memory: 1Gi
cpu: '1'
ports:
- containerPort: 3000
volumeMounts:
- mountPath: /var/lib/grafana
name: grafana-data
volumes:
- name: grafana-data
persistentVolumeClaim:
claimName: grafana-data