Skip to content

Latest commit

 

History

History
73 lines (55 loc) · 2.02 KB

File metadata and controls

73 lines (55 loc) · 2.02 KB

Deployment guide

Table of Contents generated with DocToc

Environment variable

The environment variable CHARTS_DIR must be set when developing. It specifies the directory where the charts will be downloaded and expanded (Default /tmp/charts).

RBAC

The service account is multicluster-operators-subscription-release.

The cluster-role cluster-admin is bound to the service account as the helmrelease operator must be able to deploy the Helm chart in any namespace.

The role multicluster-operators-subscription-release is bound to that service account.

A cluster role multicluster-operators-subscription-release is created for the helmrelease resource.

In order for another service account to be able to access the helmrelease, a role binding must be created.

Deployment

cd multicloud-operators-subscription-release
kubectl apply -f deploy/crds
kubectl apply -f deploy

General process

Helmrelease CR:

apiVersion: apps.open-cluster-management.io/v1
kind: HelmRelease
metadata:
  name: nginx-ingress
  namespace: default
repo:
  chartName: nginx-ingress
  source:
    helmRepo:
      urls:
      - https://kubernetes-charts.storage.googleapis.com/nginx-ingress-1.26.0.tgz
    type: helmrepo
  version: 1.26.0
spec:
  defaultBackend:
    replicaCount: 1

file: scheme is also supported to define the location of a local file.

The source can have the following format for GitHub:

  source:
    github:
      urls:
      - https://github.com/helm/charts
      chartPath: stable/nginx-ingress
      branch: master
    type: github