feat: working flannel, nginx
This commit is contained in:
parent
404a66b115
commit
ce838f5bcb
@ -1 +1 @@
|
||||
ssh debian@vps-sbg-10.maby.dev sudo cat /etc/kubernetes/admin.conf > f.conf
|
||||
ssh debian@vps-gra-k8s10.gmoker.com sudo cat /etc/kubernetes/admin.conf > f.conf
|
||||
|
3
hosts
3
hosts
@ -1,2 +1 @@
|
||||
debian@vps-sbg-10.maby.dev
|
||||
debian@vps-gra-10.maby.dev
|
||||
debian@vps-gra-k8s10.gmoker.com
|
||||
|
@ -34,7 +34,7 @@
|
||||
- name: Upgrade
|
||||
apt:
|
||||
update_cache: true
|
||||
cache_valid_time: 604800 # 60s * 60m * 24h * 7d
|
||||
cache_valid_time: 86400 # 60s * 60m * 24h
|
||||
upgrade: dist
|
||||
autoremove: true
|
||||
purge: true
|
||||
@ -51,7 +51,6 @@
|
||||
- name: Install deps
|
||||
apt:
|
||||
name:
|
||||
- conntrack
|
||||
- gpg
|
||||
- kubectx
|
||||
- vim
|
||||
@ -107,16 +106,14 @@
|
||||
service:
|
||||
name: crio.service
|
||||
enabled: true
|
||||
- name: Remove conflicting CRI-O network config
|
||||
file:
|
||||
path: /etc/cni/net.d/100-crio-bridge.conf
|
||||
state: absent
|
||||
- name: Reboot
|
||||
reboot:
|
||||
|
||||
#- name: Init k8s
|
||||
# shell: kubeadm init --pod-network-cidr=10.244.0.0/16 --ignore-preflight-errors=NumCPU
|
||||
# shell: kubeadm init --pod-network-cidr=10.244.0.0/16
|
||||
#- name: Apply flannel (network)
|
||||
# shell: kubectl apply -f https://github.com/flannel-io/flannel/releases/latest/download/kube-flannel.yml
|
||||
#- name:
|
||||
# shell: kubectl taint node --all node-role.kubernetes.io/control-plane:NoSchedule-
|
||||
#- name:
|
||||
# shell: kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.8.1/deploy/static/provider/cloud/deploy.yaml
|
||||
|
@ -1,4 +0,0 @@
|
||||
{
|
||||
"name": "crio",
|
||||
"type": "flannel"
|
||||
}
|
Loading…
Reference in New Issue
Block a user