From the challenges present I choose to Deploy an internal container registry.
Kubernetes does not provide an internal container registry but it is often useful to add one. There are many projects which enable you to deploy an internal container registry, such as Harbour or Trow.
- Click on Create
- Choose Kubernetes from the drop down
- Fill in the menu and wait for cluster creation
- Install doctl from the following link
- Use Certificates from the Authentication for connection to the cluster.
- Make sure you have kubectl installed. If not, try running these commands on a linux VM:
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
rm kubectl
Helm helps you manage Kubernetes applications โ Helm Charts help you define, install, and upgrade even the most complex Kubernetes application. We would install harbor using helm but first let's install Helm.
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
A chart repository is an HTTP server that houses an index.yaml file and optionally some packaged charts. We would use Bitnami for the following.
helm repo add bitnami https://charts.bitnami.com/bitnami
Before installing helm chart we need to edit the yaml file, so create a yaml file
helm show values bitnami/harbor > harbor-values.yaml
open harbor-values.yaml
in a editor and set admin password harborAdminPassword: "<YOUR PASSWORD>"
Installing the chart using the new yaml we have created in the repository by helm install harbor bitnami/harbor --values harbor-values.yaml -n harbor --create-namespace
Make Sure Pods are running using the command kubectl get all -nharbor