Create an EnvoyProxy

Without a custom EnvoyProxy, the MKE default GatewayClass will provision a proxy using built-in defaults.

Create an EnvoyProxy service to use NodePort as the service type.

As an example, to set EnvoyProxy with NodePort:

  1. Create the namespace.

    kubectl create namespace gateway-test
    
  2. Apply the EnvoyProxy manifest:

    kubectl apply -n gateway-test -f - <<'EOF'
    apiVersion: gateway.envoyproxy.io/v1alpha1
    kind: EnvoyProxy
    metadata:
      name: envoy-gateway-proxy
      namespace: gateway-test
    spec:
      logging:
        level:
          default: info
      provider:
        type: Kubernetes
        kubernetes:
          envoyDeployment:
            container:
              image: mirantis/ucp-envoy-proxy:3.9.5
          envoyService:
            type: NodePort
            patch:
              type: StrategicMerge
              value:
                spec:
                  externalTrafficPolicy: Cluster
    EOF