Browse Source

Añado instrucciones de cómo crear el cluster.

main
Celestino Rey 3 years ago
parent
commit
6414e44798
7 changed files with 20 additions and 0 deletions
  1. +7
    -0
      CreaCluster/README.md
  2. +1
    -0
      CreaCluster/confirmaRunning.sh
  3. +3
    -0
      CreaCluster/creaCalico.sh
  4. +4
    -0
      CreaCluster/creaConfigCluster.sh
  5. +1
    -0
      CreaCluster/inicializaCluster.sh
  6. +1
    -0
      CreaCluster/masterEsWorker.sh
  7. +3
    -0
      Nginx/creaTodo.sh

+ 7
- 0
CreaCluster/README.md View File

@ -0,0 +1,7 @@
## Instrucciones para crear el cluster
https://computingforgeeks.com/deploy-kubernetes-cluster-on-ubuntu-with-kubeadm/
## Como resetearlo
https://www.techrunnr.com/how-to-reset-kubernetes-cluster/

+ 1
- 0
CreaCluster/confirmaRunning.sh View File

@ -0,0 +1 @@
kubectl get nodes -o wide

+ 3
- 0
CreaCluster/creaCalico.sh View File

@ -0,0 +1,3 @@
kubectl create -f https://docs.projectcalico.org/manifests/tigera-operator.yaml
kubectl create -f https://docs.projectcalico.org/manifests/custom-resources.yaml

+ 4
- 0
CreaCluster/creaConfigCluster.sh View File

@ -0,0 +1,4 @@
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config

+ 1
- 0
CreaCluster/inicializaCluster.sh View File

@ -0,0 +1 @@
sudo kubeadm init --pod-network-cidr=192.168.0.0/16 --upload-certs --control-plane-endpoint=k8s-server

+ 1
- 0
CreaCluster/masterEsWorker.sh View File

@ -0,0 +1 @@
kubectl taint nodes --all node-role.kubernetes.io/master-

+ 3
- 0
Nginx/creaTodo.sh View File

@ -0,0 +1,3 @@
kubectl create -f pv-local-nginx.yaml
kubectl create -k ./
watch kubectl get all

Loading…
Cancel
Save