Skip to content

Instantly share code, notes, and snippets.

@c-success
Created January 9, 2020 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c-success/14a4ba7e3349fac00e9724855d366d11 to your computer and use it in GitHub Desktop.
Save c-success/14a4ba7e3349fac00e9724855d366d11 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: <name of ew-service>
annotations:
kubernetes.io/ingress.ewservices: <name of the NS-Service>
ladc.a10networks.com/hc-ladc-cluster: <name of the LADC cluster>
ladc.a10networks.com/header-rewrites: true|reqHdrDel|Accept-Encoding|,true|resHdrAdd|X-Proxied-By|LADC,true|resHdrAdd|X-Client-Label|$client_label
kubernetes.io/ingress.ewservices: "<name of ew-service>"
labels:
app: <name of ew-service>
ladc-inspection: enabled
spec:
clusterIP: None
ports:
- name: http
port: 80
targetPort: <application container pod port no> eg 8080
selector:
app: <name of ew-service>
type: ClusterIP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment