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-k8s10.gmoker.com
|
||||||
debian@vps-gra-10.maby.dev
|
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
- name: Upgrade
|
- name: Upgrade
|
||||||
apt:
|
apt:
|
||||||
update_cache: true
|
update_cache: true
|
||||||
cache_valid_time: 604800 # 60s * 60m * 24h * 7d
|
cache_valid_time: 86400 # 60s * 60m * 24h
|
||||||
upgrade: dist
|
upgrade: dist
|
||||||
autoremove: true
|
autoremove: true
|
||||||
purge: true
|
purge: true
|
||||||
@ -51,7 +51,6 @@
|
|||||||
- name: Install deps
|
- name: Install deps
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- conntrack
|
|
||||||
- gpg
|
- gpg
|
||||||
- kubectx
|
- kubectx
|
||||||
- vim
|
- vim
|
||||||
@ -107,16 +106,14 @@
|
|||||||
service:
|
service:
|
||||||
name: crio.service
|
name: crio.service
|
||||||
enabled: true
|
enabled: true
|
||||||
- name: Remove conflicting CRI-O network config
|
|
||||||
file:
|
|
||||||
path: /etc/cni/net.d/100-crio-bridge.conf
|
|
||||||
state: absent
|
|
||||||
- name: Reboot
|
- name: Reboot
|
||||||
reboot:
|
reboot:
|
||||||
|
|
||||||
#- name: Init k8s
|
#- 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)
|
#- name: Apply flannel (network)
|
||||||
# shell: kubectl apply -f https://github.com/flannel-io/flannel/releases/latest/download/kube-flannel.yml
|
# shell: kubectl apply -f https://github.com/flannel-io/flannel/releases/latest/download/kube-flannel.yml
|
||||||
#- name:
|
#- name:
|
||||||
# shell: kubectl taint node --all node-role.kubernetes.io/control-plane:NoSchedule-
|
# 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