Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save davidmontoyago/6fe0e652e6f8696736f27516dc2f736f to your computer and use it in GitHub Desktop.
Save davidmontoyago/6fe0e652e6f8696736f27516dc2f736f to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: vault-active
namespace: vault
labels:
app: vault
component: server
spec:
ports:
- name: https
port: 8200
targetPort: 8200
- name: https-internal
port: 8201
targetPort: 8201
publishNotReadyAddresses: false
selector:
app: vault
component: server
# vault-active is one of the dynamic labels managed by vault’s “Kubernetes service registration”
vault-active: "true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment