Verified Commit 7ab7d53c authored by Radim Peša's avatar Radim Peša
Browse files

upgrade to 6 worker nodes, readme.md

parent f5c6847a
......@@ -8,8 +8,8 @@ start: tf-apply ansible-configure
destroy: tf-destroy
load-secrets:
source secrets.sh
#load-secrets:
# source secrets.sh
tf-plan:
cd tf && terraform init
......
# K8s cluster deployment
TODO
Use following sequence to start cluster.
````
source secrets.txt
make tf-apply
make ansible-configure
````
# Manual set up of nodes when joining nodes
## Post-install steps
kubectl taint nodes <NODE-NAME> edirex=cbio:NoSchedule
kubectl label nodes <NODE-NAME> edirex=cbio
To enable propper scheduling on worker nodes use following commands:
# Manual set up in Rancher
````kubectl taint node <NODE-NAME> edirex=cbio:NoSchedule````
cluster -> system -> workloads -> nginx-ingress-controller
````kubectl label node <NODE-NAME> edirex=cbio````
In Rancher GUI use following settings.
Cluster -> system -> workloads -> nginx-ingress-controller
-> edit -> node sceduling -> advanced options -> Add tolerations:
````
node-role.kubernetes.io/controlplane Equal true NoSchedule
node-role.kubernetes.io/etcd Equal true NoExecute
````
Host k8s-prod-worker-*
#Host k8s-prod-worker-*
Host 192.168.7.*
# Security
ForwardAgent no
# Connection multiplexing
......
......@@ -3,7 +3,7 @@ resource "openstack_compute_instance_v2" "k8s_cluster_master" {
count = "${var.k8s_master_node_count}"
name = "${var.k8s_cluster_name}-master-${count.index + 1}"
image_name = "${var.image_name}"
flavor_name = "standard.medium"
flavor_name = "${var.flavor_4cpu8ram}"
key_pair = "${var.key_pair}"
security_groups = ["ingress_ssh", "allow_barn", "default", "allow_ingress_http_https"]
......
......@@ -63,5 +63,5 @@ variable "k8s_master_node_count" {
}
variable "k8s_worker_node_count" {
default = "2"
default = "6"
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment