ONLY FOR DEV. PURPOSES
- kubeadm
- cri-o
- calico
- selinux in enforcing mode
- A CentOS machine/VM minimal install with SSH enabled
- Ansible installed on your machine
- Replace all references to 10.0.1.18 with your masters IP (doh)
- Helm for Traefik deployment
- Run playbooks in order (edit hosts file with your IP)
- SSH to node and run "kubeadm init --pod-network-cidr=192.168.0.0/16"
- Follow instructions to set up kubectl config
- Deploy pod network "kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml"
- Remove taint from master to allow scheduling of pods, "kubectl taint nodes --all node-role.kubernetes.io/master-"
- Optionally copy the kubeconfig file to your machine (scp [email protected]:~/.kube/config ~/.kube/config)
- Edit script helm_deploy_traefik.sh with your IP
- Run script helm_deploy_traefik.sh in sample_app/ dir
- Edit ingress part of sample_app.yaml with host name of choice
- Apply the sample app, "kubectl apply -f sample_app/sample_app.yaml"
- Test app with "curl -H "Host: sample-app.localdomain" 10.0.1.18" or add sample-app.localdomain to your /etc/hosts file or local DNS server