Skip to content

Instantly share code, notes, and snippets.

@zimmertr
Created October 30, 2019 18:26
Show Gist options
  • Save zimmertr/cfc04d93a72a6197999bc078b28070a3 to your computer and use it in GitHub Desktop.
Save zimmertr/cfc04d93a72a6197999bc078b28070a3 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: prometheus
annotations:
metallb.universe.tf/address-pool: {{ load_balancer_address_pool }}
namespace: {{ namespace }}
labels:
app: prometheus
spec:
type: LoadBalancer
externalTrafficPolicy: Local
selector:
app: prometheus
loadBalancerIP: {{ prometheus_load_balancer_ip }}
ports:
- name: "http-web"
protocol: TCP
targetPort: 9090
port: 9090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment