mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #46878 from cdrage/update-cockroach
Automatic merge from submit-queue (batch tested with PRs 47776, 46220, 46878, 47942, 47947) Adds --insecure to cockroachdb client command
This commit is contained in:
commit
b47ac2efb2
@ -57,7 +57,7 @@ Start up a client pod and open up an interactive, (mostly) Postgres-flavor
|
||||
SQL shell using:
|
||||
|
||||
```console
|
||||
$ kubectl run -it --rm cockroach-client --image=cockroachdb/cockroach --restart=Never --command -- ./cockroach sql --host cockroachdb-public
|
||||
$ kubectl run -it --rm cockroach-client --image=cockroachdb/cockroach --restart=Never --command -- ./cockroach sql --host cockroachdb-public --insecure
|
||||
```
|
||||
|
||||
You can see example SQL statements for inserting and querying data in the
|
||||
|
@ -21,6 +21,7 @@ function sql() {
|
||||
# output?
|
||||
kubectl exec "cockroachdb-${1}" -- /cockroach/cockroach sql \
|
||||
--host "cockroachdb-${1}.cockroachdb" \
|
||||
--insecure \
|
||||
-e "$(cat /dev/stdin)"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user