apiVersion: v1 kind: Namespace metadata: name: projectcontour --- apiVersion: operator.projectcontour.io/v1alpha1 kind: Contour metadata: name: contour-gateway-sample namespace: contour-operator spec: gatewayControllerName: projectcontour.io/sample-controller networkPublishing: envoy: type: NodePortService # nodePorts are auto-assigned by k8s if unspecified. nodePorts: - name: http portNumber: 30080 - name: https portNumber: 30443 --- kind: GatewayClass apiVersion: gateway.networking.k8s.io/v1alpha2 metadata: name: sample-gatewayclass spec: controllerName: projectcontour.io/sample-controller --- kind: Gateway apiVersion: gateway.networking.k8s.io/v1alpha2 metadata: name: contour namespace: projectcontour spec: gatewayClassName: sample-gatewayclass listeners: - name: http protocol: HTTP port: 80 allowedRoutes: namespaces: from: All