Skip to content

Instantly share code, notes, and snippets.

@reutsharabani
Created March 10, 2021 08:58
Show Gist options
  • Save reutsharabani/8fc8c0c90fd76f6756b83c1aa7847636 to your computer and use it in GitHub Desktop.
Save reutsharabani/8fc8c0c90fd76f6756b83c1aa7847636 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
annotations:
service.beta.kubernetes.io/aws-load-balancer-type: nlb-ip
service.beta.kubernetes.io/aws-load-balancer-target-group-attributes: proxy_protocol_v2.client_to_server.header_placement=on_first_ack,proxy_protocol_v2.enabled=true
name: my-nlb
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
somelabel: somevalue
type: LoadBalance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment