As a start, read the introduction into kubernetes by the folks at Digital Ocean. The following section should enable you to deploy Human Connection to your kubernetes cluster.
Create a cluster at Digital Ocean.
***-kubeconfig.yaml from the Web UI.
Move the file to the default location where kubectl expects it to be:
mv ***-kubeconfig.yaml ~/.kube/config. Alternatively you can set the config on every command:
Now check if you can connect to the cluster and if its your newly created one by running:
kubectl get nodes
The output should look about like this:
$ kubectl get nodesNAME STATUS ROLES AGE VERSIONnifty-driscoll-uu1w Ready <none> 69d v1.13.2nifty-driscoll-uuiw Ready <none> 69d v1.13.2nifty-driscoll-uusn Ready <none> 69d v1.13.2
If you got the steps right above and see your nodes you can continue.
Digital Ocean kubernetes clusters don't have a graphical interface, so I suggest to setup the kubernetes dashboard as a next step. Configuring HTTPS is bit tricky and therefore I suggest to do this as a last step.
We are storing our images in the s3-compatible DigitalOcean Spaces.
We still want to take backups of our images in case something happens to the images in the cloud. See these instructions about getting set up with
s3cmd to take a copy of all images in a
Spaces namespace, ie
s3cmd with your credentials, etc. you should be able to make a backup with this command.
s3cmg get --recursive s3://human-connection-uploads --skip-existing