From e2c7b1305ca8495065dcf40fd2092d7c698dd6ea Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 20 Mar 2018 15:47:51 +0100 Subject: Local volumes and StatefulSet to provision Master/Slave MySQL and Galera cluster --- docs/info.txt | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 docs/info.txt (limited to 'docs/info.txt') diff --git a/docs/info.txt b/docs/info.txt new file mode 100644 index 0000000..ea00f58 --- /dev/null +++ b/docs/info.txt @@ -0,0 +1,31 @@ +oc -n adei patch dc/mysql --type=json --patch '[{"op": "remove", "path": "/spec/template/spec/nodeSelector"}]' +oc process -f mysql.yml | oc -n adei replace dc/mysql -f - +oc -n adei delete --force --grace-period=0 pod mysql-1-m4wcq +We use rpcbind from the host. +we need isciinitiators, rpcbind is used for host but check with telnet. The mother volumes are provisioned 100GiB large. So we can't allocate more. + +We can use rpcbind (and other services) from the host. Host networking. +oc -n adei delete --force --grace-period=0 pod mysql-1-m4wcq +| grep -oP '^GBID:\s*\K.*' + +Top level (nodeSelector restarPolciy SecurityContext) + dnsPolicy: ClusterFirstWithHostNet + dnsPolicy: ClusterFirst + hostNetwork: true +oc -n kaas adm policy add-scc-to-user hostnetwork -z default +Check (in users list) +oc get scc hostnetwork -o yaml +firewall-cmd --add-port=5002/tcp + + OnDelete: This is the default update strategy for backward-compatibility. With OnDelete update strategy, after you update a DaemonSet template, new DaemonSet pods will only be created when you manually delete old DaemonSet pods. This is the same behavior of DaemonSet in Kubernetes version 1.5 or before. + RollingUpdate: With RollingUpdate update strategy, after you update a DaemonSet template, old DaemonSet pods will be killed, and new DaemonSet pods will be created automatically, in a controlled fashion. + +Caveat: Updating DaemonSet created from Kubernetes version 1.5 or before +.spec.updateStrategy.rollingUpdate.maxUnavailable (default to 1) and .spec.minReadySeconds + + + + “Default”: The Pod inherits the name resolution configuration from the node that the pods run on. See related discussion for more details. + “ClusterFirst”: Any DNS query that does not match the configured cluster domain suffix, such as “www.kubernetes.io”, is forwarded to the upstream nameserver inherited from the node. Cluster administrators may have extra stub-domain and upstream DNS servers configured. See related discussion for details on how DNS queries are handled in those cases. + “ClusterFirstWithHostNet”: For Pods running with hostNetwork, you should explicitly set its DNS policy “ClusterFirstWithHostNet”. + “None”: A new option value introduced in Kubernetes v1.9. This Alpha feature allows a Pod to ignore DNS settings from the Kubernetes environment. All DNS settings are supposed to be provided using the dnsConfig field in the Pod Spec. See DNS config subsection below. -- cgit v1.2.3