fad083eae2
Added a new role which deploys Heapster, InfluxDB and Grafana when a new Kargo Kubernetes Cluster is created.
21 lines
695 B
YAML
21 lines
695 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
# For use as a Cluster add-on (https://github.com/kubernetes/kubernetes/tree/master/cluster/addons)
|
|
# If you are NOT using this as an addon, you should comment out this line.
|
|
kubernetes.io/cluster-service: 'true'
|
|
kubernetes.io/name: monitoring-grafana
|
|
name: monitoring-grafana
|
|
namespace: kube-system
|
|
spec:
|
|
# In a production setup, we recommend accessing Grafana through an external Loadbalancer
|
|
# or through a public IP.
|
|
# type: LoadBalancer
|
|
# You could also use NodePort to expose the service at a randomly-generated port
|
|
# type: NodePort
|
|
ports:
|
|
- port: 80
|
|
targetPort: 3000
|
|
selector:
|
|
k8s-app: grafana
|