Skip to content

Commit 15954c9

Browse files
author
Jeff McCormick
committed
update quickstart with port-forward comments
1 parent 5cb51b3 commit 15954c9

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

deploy/service.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
"kind": "Service",
33
"apiVersion": "v1",
44
"metadata": {
5-
"name": "postgres-operator",
5+
"name": "postgres-operator",
6+
"annotations": {
7+
"cloud.google.com/load-balancer-type": "Internal"
8+
},
69
"labels": {
710
"name": "postgres-operator"
811
}
@@ -12,13 +15,12 @@
1215
"name": "apiserver",
1316
"protocol": "TCP",
1417
"port": 8443,
15-
"targetPort": 8443,
16-
"nodePort": 0
18+
"targetPort": 8443
1719
}],
1820
"selector": {
1921
"name": "postgres-operator"
2022
},
21-
"type": "ClusterIP",
23+
"type": "LoadBalancer",
2224
"sessionAffinity": "None"
2325
}
2426
}

examples/quickstart.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export CO_VERSION=2.4
4646
export CO_IMAGE_TAG=$CO_BASEOS-$CO_VERSION
4747
export CO_NAMESPACE=demo
4848
export CO_CMD=kubectl
49-
export CO_APISERVER_URL=https://postgres-operator:8443
49+
export CO_APISERVER_URL=https://127.0.0.1:8443
5050
export PGO_CA_CERT=$COROOT/conf/apiserver/server.crt
5151
export PGO_CLIENT_CERT=$COROOT/conf/apiserver/server.crt
5252
export PGO_CLIENT_KEY=$COROOT/conf/apiserver/server.key
@@ -131,4 +131,9 @@ echo "for pgo bash completion you will need to install the bash-completion packa
131131

132132
mv $HOME/pgo-bash-completion $HOME/.bash_completion
133133

134-
echo "install complete, try 'pgo version' command"
134+
echo "install complete"
135+
136+
echo "At this point you can access the operator by using a port-forward command similar to:"
137+
echo "kubectl port-forward postgres-operator-3590887357-7h5ht 8443:8443"
138+
echo "do this in another terminal or run in the background"
139+

0 commit comments

Comments
 (0)