Created
June 8, 2020 14:21
-
-
Save generalinterest/dac40945c57adf0dc0f1dd478a0a1498 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To take the apps I ran on my old Dell Optiplex 780 and make them multi-architure containers to run on Kuberneetes. | |
Starting with a Raspberry Pi 4 4gb with Ranchers K3S, a Rasperry PI 3 as a MYSql service and testing as an NFS service for helm charts that typically call for PVC's. | |
On the PI3 | |
enable nfs and make the exports (MUST IMPROVE THE NSF MOUNT OPTIONS) | |
/mnt/nfs/kubedata *(rw,sync,no_subtree_check,no_root_squash,no_all_squash,insecure) | |
/mnt/nfs/pvdata/{app} *(rw,sync,no_subtree_check,no_root_squash,no_all_squash,insecure | |
curl -sfL https://get.k3s.io |sh -s - | |
alias kubectl="sudo k3s kubectl" | |
alias k="sudo k3s kubectl" | |
kube config is at /etc/rancher/k3s/k3s.yaml | |
make ~/.kube/config from it. | |
NFS storage class.... | |
KUBECONFIG=/home/pi/.kube/config helm install helm-nfs-client-provisioner --set nfs.server=nfs.home --set nfs.path=/mnt/nfs/kubedata stable/nfs-client-provisioner --set image.repository=quay.io/external_storage/nfs-client-provisioner-arm --set storageClass.name="default" --set storageClass.defaultClass="true" | |
Then find my apps at my git repository https://github.com/generalinterest?tab=repositories | |
Will add the old Dell mini tower to the cluster for pods that are X86 only (Boo hiss) or maybe need a faster CPU. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment