Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docker:kubernetes [2020/06/22 05:28]
tmade [Commands]
docker:kubernetes [2020/07/08 13:13] (current)
tmade [Trident]
Line 3: Line 3:
 ====Install==== ====Install====
  
-Install repositories, docker and kubernetes packages on Ubuntu LTS 16.04:+Install repositories, docker and kubernetes packages on Ubuntu LTS 16.04, 18.04:
  
 <code sh install-packages.sh> <code sh install-packages.sh>
Line 9: Line 9:
  
 #author:  Thomas Roehm #author:  Thomas Roehm
-#version: 1.2+#version: 1.3
  
 echo "" echo ""
Line 62: Line 62:
  
 apt-get update apt-get update
-apt-mark unhold kubernetes-cni kubeadm kubelet kubectl docker-ce+apt-mark unhold kubernetes-cni kubeadm kubelet kubectl docker-ce docker-ce-cli
 echo "" echo ""
 echo "Up- or downgrade docker and k8s packages" echo "Up- or downgrade docker and k8s packages"
Line 72: Line 72:
 echo "Version: \"${DVERSION}\" will be installed!" echo "Version: \"${DVERSION}\" will be installed!"
 echo "" echo ""
-apt-get install -y docker-ce=${DVERSION} --allow-downgrades+apt-get install -y docker-ce=${DVERSION} docker-ce-cli=${DVERSION} --allow-downgrades
 echo "" echo ""
 apt-cache policy kubeadm  | head -n 30 apt-cache policy kubeadm  | head -n 30
Line 81: Line 81:
 apt-get install -y kubeadm=${VERSION} kubelet=${VERSION} kubectl=${VERSION} --allow-downgrades apt-get install -y kubeadm=${VERSION} kubelet=${VERSION} kubectl=${VERSION} --allow-downgrades
 echo "" echo ""
-apt-mark hold kubelet kubeadm kubectl docker-ce+apt-mark hold kubelet kubeadm kubectl docker-ce docker-ce-cli
 echo "" echo ""
 echo "k8s packages are installed!" echo "k8s packages are installed!"
Line 87: Line 87:
 </code> </code>
  
-See also on https://kubernetes.io/docs/setup/independent/install-kubeadm/+Check also on https://kubernetes.io/docs/setup/independent/install-kubeadm/
  
  
Line 1709: Line 1709:
  
 #author:  Thomas Roehm #author:  Thomas Roehm
-#version: 1.2+#version: 1.3
  
 echo "" echo ""
Line 1715: Line 1715:
 echo "" echo ""
  
-VERSION="20.01.1"+VERSION="20.04.0"
 HOME="/home/kubernetes/" HOME="/home/kubernetes/"
 FILE="${HOME}trident-installer-${VERSION}.tar.gz" FILE="${HOME}trident-installer-${VERSION}.tar.gz"
Line 1729: Line 1729:
         echo ""         echo ""
         sleep 3         sleep 3
 +        su - kubernetes -c "cat <<EOF | kubectl create -f -
 +apiVersion: storage.k8s.io/v1
 +kind: StorageClass
 +metadata:
 +  name: trident-ontap-gold                               #name storage-klasse
 +provisioner: netapp.io/trident
 +parameters:
 +  backendType: "ontap-nas"
 +  #media: "ssd"
 +  provisioningType: "thin"
 +allowVolumeExpansion: true
 +reclaimPolicy: Delete
 +EOF"
         su - kubernetes -c "wget https://github.com/NetApp/trident/releases/download/v${VERSION}/trident-installer-${VERSION}.tar.gz -P ${HOME}"         su - kubernetes -c "wget https://github.com/NetApp/trident/releases/download/v${VERSION}/trident-installer-${VERSION}.tar.gz -P ${HOME}"
         su - kubernetes -c "mv ~/trident-installer ~/trident-installer.old"         su - kubernetes -c "mv ~/trident-installer ~/trident-installer.old"
docker/kubernetes.1592796526.txt.gz ยท Last modified: 2020/06/22 05:28 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki