21 lines
677 B
YAML
21 lines
677 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
|
||
|
ports:
|
||
|
- port : 80
|
||
|
targetPort: 3000
|
||
|
selector:
|
||
|
k8s-app: grafana
|