Use “appProtocol” to define backend application communication protocol

The NetScaler Kubernetes Gateway Controller uses the appProtocol field on a Kubernetes service port to explicitly set the protocol for the resulting NetScaler service group, that controls the communication between the NetScaler and the backend applications.

For example, setting appProtocol: ssl on the service port ensures the corresponding service group on the NetScaler is configured with the SSL protocol. If not explicitly set, the default service group protocol is HTTP.

apiVersion: v1
kind: Service
metadata:
 name: my-secure-backend-service
spec:
 selector:
   app: secure-app
 ports:
 - name: https-to-ssl
   protocol: TCP
   port: 443
   targetPort: 443
   # CRITICAL: This line tells NetScaler to use SSL for the backend connection
   appProtocol: ssl
<!--NeedCopy-->
Use “appProtocol” to define backend application communication protocol