Slide 19
Slide 19 text
Fukuoka.go#15 with Kagoshima Gophers
๏ 42-ͷ࣮ߦ
CREATE DATABASE bank;
CREATE TABLE bank.accounts (id INT PRIMARY KEY, balance DECIMAL);
INSERT INTO bank.accounts VALUES (1, 1000.50);
SELECT * FROM bank.accounts;
CREATE USER roach WITH PASSWORD 'Q7gc8rEdS';
INSERT INTO system.role_members (role, member, "isAdmin") VALUES ('admin', 'roach', true);
๏ ίϯιʔϧϩάΠϯ
kubectl port-forward my-release-cockroachdb-0 8080
๏ /PEF'BJMPWFSɺ/PEFͷՃɺআ
kubectl delete pod my-release-cockroachdb-2
helm upgrade my-release stable/cockroachdb --set statefulset.replicas=4 —reuse-values
kubectl certificate approve default.node.my-release-cockroachdb-3
kubectl exec -it cockroachdb-client-secure -- ./cockroach node status --certs-dir=/cockroach-certs —host=my-release-cockroachdb-public
kubectl exec -it cockroachdb-client-secure -- ./cockroach node decommission 2 --certs-dir=/cockroach-certs —host=my-release-cockroachdb-public
helm upgrade my-release stable/cockroachdb --set statefulset.replicas=3 --reuse-values
https://www.cockroachlabs.com/docs/stable/orchestrate-a-local-cluster-with-kubernetes.html
KubernetesΛͬͯDemo: ૢ࡞