Skip to content

cormorack/helm-charts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

194 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portal Chart Deployment

Interactive Oceans Helm Charts

This repository contains the Interactive Oceans Services helm chart.

Local/Development Deployment

  1. Install docker, k3d, kubectl, helm, and stern if it doesn't exists in system yet

    # Installs docker in (Ubuntu)
    # Source: https://rancher.com/docs/rancher/v2.x/en/installation/requirements/installing-docker/
    curl https://releases.rancher.com/install-docker/19.03.sh | sh
    
    # Allow docker to run as non-root user
    sudo usermod -aG docker ubuntu
    
    # Installs k3d in Linux
    curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash
    
    # Install kubectl
    curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
    chmod +x ./kubectl
    sudo mv ./kubectl /usr/local/bin/
    
    # Install helm
    curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash
    
  2. Spin up k3s cluster via k3d. K3s is a lightweight kubernetes by rancher.

    # Note: https://github.com/rancher/k3d/issues/104#issuecomment-542184960
    # -p options are optional ... it is used to port forward to the host machine
    # Pinned to K3S v1.20 only for now and traefik is disabled
    
    k3d cluster create \
        --image rancher/k3s:v1.20.15-k3s1 \
        -p "9000:9000@loadbalancer" \
        -p "443:443@loadbalancer" \
        -p "80:80@loadbalancer" \
        --k3s-arg="--disable=traefik@server:0"
  3. Connect to cluster and check

    kubectl config use-context k3d-k3s-default
    kubectl cluster-info
  4. Create cava secrets

    Must be unlocked first

    kubectl apply -f .ci-helpers/deployments/secrets/cava-secrets.yaml
  5. Update io2-portal helm chart dependencies

    helm dependencies update ./io2-portal
  6. Install/upgrade io2-portal chart.

    helm upgrade io2-portal ./io2-portal --install --cleanup-on-fail --values .ci-helpers/deployments/secrets/dev-test.yaml
  7. Delete chart only

    helm delete io2-portal
  8. Tear down k3s cluster

    k3d cluster delete

About

Interactive Oceans Helm Chart

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •