|
| 1 | += Environment variables |
| 2 | + |
| 3 | +This operator accepts the following environment variables: |
| 4 | + |
| 5 | +== CSI_ENDPOINT |
| 6 | + |
| 7 | +*Required*: true |
| 8 | + |
| 9 | +*Multiple values*: false |
| 10 | + |
| 11 | +The path to the https://github.com/container-storage-interface/spec/blob/master/spec.md[Container Storage Interface] Unix Domain Socket |
| 12 | +that the operator should listen on. |
| 13 | + |
| 14 | +[source] |
| 15 | +---- |
| 16 | +export CSI_ENDPOINT=unix:///csi.sock |
| 17 | +cargo run -- run |
| 18 | +---- |
| 19 | + |
| 20 | +or via docker: |
| 21 | + |
| 22 | +[source] |
| 23 | +---- |
| 24 | +docker run \ |
| 25 | +--name listener-operator \ |
| 26 | +--network host \ |
| 27 | +--env KUBECONFIG=/home/stackable/.kube/config \ |
| 28 | +--env CSI_ENDPOINT=unix:///csi.sock controller \ |
| 29 | +--mount type=bind,source="$HOME/.kube/config",target="/home/stackable/.kube/config" \ |
| 30 | +docker.stackable.tech/stackable/listener-operator:0.0.0-dev |
| 31 | +---- |
| 32 | + |
| 33 | +== KUBERNETES_CLUSTER_DOMAIN |
| 34 | + |
| 35 | +*Default value*: cluster.local |
| 36 | + |
| 37 | +*Required*: false |
| 38 | + |
| 39 | +*Multiple values*: false |
| 40 | + |
| 41 | +This instructs the operator, which value it should use for the Kubernetes `clusterDomain` setting. |
| 42 | +Make sure to keep this in sync with whatever setting your cluster uses. |
| 43 | +Please see the documentation xref:guides:kubernetes-cluster-domain.adoc[on configuring the Kubernetes cluster domain] for more information on this feature. |
| 44 | + |
| 45 | +[source] |
| 46 | +---- |
| 47 | +export KUBERNETES_CLUSTER_DOMAIN=mycluster.local |
| 48 | +cargo run -- run --csi-endpoint unix:///csi.sock controller |
| 49 | +---- |
| 50 | + |
| 51 | +or via docker: |
| 52 | + |
| 53 | +[source] |
| 54 | +---- |
| 55 | +docker run \ |
| 56 | +--name listener-operator \ |
| 57 | +--network host \ |
| 58 | +--env KUBECONFIG=/home/stackable/.kube/config \ |
| 59 | +--env KUBERNETES_CLUSTER_DOMAIN=mycluster.local \ |
| 60 | +--mount type=bind,source="$HOME/.kube/config",target="/home/stackable/.kube/config" \ |
| 61 | +docker.stackable.tech/stackable/listener-operator:0.0.0-dev \ |
| 62 | +run --csi-endpoint unix:///csi.sock controller |
| 63 | +---- |
0 commit comments