You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ingresses allows you to access Kubernetes services throught a controller.
139
+
140
+
First you will need to ensure a NGINX Ingress Controller is available in your Kubernetes cluster.
141
+
142
+
If you are using Minikube, you can easily deploy one using
143
+
....
144
+
minikube addons enable ingress
145
+
....
146
+
If not, please refer to the https://kubernetes.github.io/ingress-nginx/deploy/#bare-metal[Nginx Ingress Controller's official documentation] for its installation.
147
+
148
+
Once your controller is running, just deploy the ingress using
149
+
....
150
+
kubectl create -f $COROOT/deploy/ingress.yml
151
+
....
152
+
Due to the annotations used, please note this ingress is currently usable only with Nginx Ingress Controller.
153
+
154
+
Now you can use the adress IP of the host where the nginx-ingress-controller pod is to connect to the pgo apiserver. The port will be 443 (and not 8443).
155
+
156
+
To retrieve the address ip:
157
+
....
158
+
kubectl get ingress postgres-operator -o jsonpath="{.status.loadBalancer.ingress[0].ip}"
159
+
160
+
export CO_APISERVER_URL=https://`kubectl get ingress postgres-operator -o jsonpath="{.status.loadBalancer.ingress[0].ip}"`
161
+
....
162
+
163
+
If you are using minikube, the address IP displayed is incorrect, just use:
0 commit comments