You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by GitBox <gi...@apache.org> on 2022/03/24 05:56:25 UTC

[GitHub] [flink-kubernetes-operator] morhidi commented on a change in pull request #104: [FLINK-26817] Update ingress docs with templating examples

morhidi commented on a change in pull request #104:
URL: https://github.com/apache/flink-kubernetes-operator/pull/104#discussion_r833940215



##########
File path: docs/content/docs/operations/ingress.md
##########
@@ -25,33 +25,79 @@ under the License.
 -->
 
 # Accessing Flinkā€™s Web UI
-
 The Flink Kubernetes Operator, by default, does not change the way the native kubernetes integration [exposes](https://nightlies.apache.org/flink/flink-docs-master/docs/deployment/resource-providers/native_kubernetes/#accessing-flinks-web-ui) the Flink Web UI.
 
 # Ingress
-The Operator also supports creating an optional [Ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/) entry for Web UI access. Ingress generation can be turned on by setting the `ingressDomain` field in the FlinkDeployment:
-
+Beyond the native options, the Operator also supports creating [Ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/) entries for external UI access. 
+Ingress generation can be turned on by defining the `ingress` field in the `FlinkDeployment`:
 ```yaml
-apiVersion: flink.apache.org/v1alpha1
-kind: FlinkDeployment
 metadata:
   namespace: default
-  name: basic-ingress
+  name: advanced-ingress
 spec:
   image: flink:1.14.3
   flinkVersion: v1_14
-  ingressDomain: flink.k8s.io
-  ...
+  ingress:
+    template: "flink.k8s.io/{{namespace}}/{{name}}(/|$)(.*)"
+    className: "nginx"
+    annotations:
+      nginx.ingress.kubernetes.io/rewrite-target: "/$2"
+```
+The `ingress` specification defines a mandatory `template` field and two optional fields `className` and `annotations`. 
+When the CR is submitted the Operator substitutes the template variables from metadata and creates an Ingress entry on the Kubernetes cluster.  

Review comment:
       fixed




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org