Giter Club home page Giter Club logo

k8s-harbor's Introduction

DigitalOcean Kubernetes Challenge

From the challenges present I choose to Deploy an internal container registry.

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.

Creating/Connecting a Managed k8s cluster

  1. Click on Create image
  2. Choose Kubernetes from the drop down image
  3. Fill in the menu and wait for cluster creation image
  4. Install doctl from the following link
  5. Use Certificates from the Authentication for connection to the cluster. image
  6. 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
  1. Try running kubectl get nodes to see the number of nodes. Eg: image

Challenge

Helm Installation

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

Helm Repository (Bitnami)

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

image

Helm Edit Values

Before installing helm chart we need to edit the yaml file, so create a yaml file

helm show values bitnami/harbor > harbor-values.yaml

image

open harbor-values.yaml in a editor and set admin password harborAdminPassword: "<YOUR PASSWORD>"

Helm Install Chart

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 image

Make Sure Pods are running using the command kubectl get all -nharbor

Visit the Portal to get the Load Balancer IP

image

Visit Harbor and use password from your harbor-values.yml and user as admin.

image

k8s-harbor's People

Contributors

hrittikhere avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.