senzing-garage / charts

:no_entry: [DEPRECATED]
Apache License 2.0
0 stars 4 forks source link
archived deprecated obsolete

Charts

:no_entry: Deprecated

No Maintenance Intended

Overview

Charts used by Helm to manage Kubernetes.

To see how to use the Senzing Helm Charts in practice, visit kubernetes-demo.

Contents

  1. Using Helm
    1. Add helm repository
    2. List helm repositories
    3. View charts in Senzing Helm repository
    4. Remove helm repository
  2. Development
    1. Clone repository
    2. Identify public charts
    3. Helm lint
    4. Helm template
    5. Package Helm chart

Using Helm

Add helm repository

  1. Using helm repo add. Example:

    helm repo add senzing 'https://hub.senzing.com/charts/'
    

List helm repositories

  1. Using helm repo list. Example:

    helm repo list
    

View charts in Senzing Helm repository

  1. Using helm search. Example:

    helm search senzing
    

Remove helm repository

  1. Using helm repo remove Example:

    helm repo remove senzing
    

Development

Clone repository

  1. Using these environment variable values:

    export GIT_ACCOUNT=senzing
    export GIT_REPOSITORY=charts
    export GIT_ACCOUNT_DIR=~/${GIT_ACCOUNT}.git
    export GIT_REPOSITORY_DIR="${GIT_ACCOUNT_DIR}/${GIT_REPOSITORY}"
    

    Then follow steps in clone-repository.

Identify public charts

  1. :pencil2: List docker images in an environment variable. Example:

    export CHART_NAMES=( \
      "arey-mysql-client" \
      "coleifer-sqlite-web" \
      "confluentinc-cp-kafka" \
      "db2-client" \
      "ibm-db2-driver-installer" \
      "microsoft-mssql-tools" \
      "senzing-api-server" \
      "senzing-apt" \
      "senzing-base" \
      "senzing-common" \
      "senzing-configurator" \
      "senzing-console" \
      "senzing-entity-search-web-app" \
      "senzing-ibm-db2" \
      "senzing-init-postgresql" \
      "senzing-postgresql-client" \
      "senzing-redoer" \
      "senzing-resolver" \
      "senzing-stream-loader" \
      "senzing-stream-producer" \
      "senzing-yum" \
      "swaggerapi-swagger-ui" \
    )
    

Helm lint

  1. Single chart.

    :pencil2: Identify chart.

    export CHART_NAME=senzing-hello-world

    Using helm lint. Example:

    cd ${GIT_REPOSITORY_DIR}/charts/${CHART_NAME}
    helm lint
    
  2. Public charts using helm lint. Example:

    for CHART_NAME in ${CHART_NAMES[@]}; \
    do \
      cd ${GIT_REPOSITORY_DIR}/charts/${CHART_NAME}; \
      pwd; \
      helm dependency update ${GIT_REPOSITORY_DIR}/charts/${CHART_NAME}; \
      helm lint; \
    done
    

Helm template

  1. Single chart.

    :pencil2: Identify chart.

    export CHART_NAME=senzing-hello-world

    Using helm template. Example:

    cd ${GIT_REPOSITORY_DIR}/charts/${CHART_NAME}
    helm template .
    
  2. Public charts using helm template. Example:

    for CHART_NAME in ${CHART_NAMES[@]}; \
    do \
      cd ${GIT_REPOSITORY_DIR}/charts/${CHART_NAME}; \
      printf "\n"
      printf "# ----------------------------------------------------------------\n"
      printf "# $(pwd)\n"; \
      printf "# ----------------------------------------------------------------\n\n"
      helm template .; \
    done
    

Package Helm chart

  1. Single chart. Example:

    :pencil2: Identify chart.

    export CHART_NAME=senzing-hello-world

    Using helm dependency update, helm package, and helm repo index. Example:

    cd ${GIT_REPOSITORY_DIR}/docs
    helm dependency update ${GIT_REPOSITORY_DIR}/charts/${CHART_NAME}
    helm package ${GIT_REPOSITORY_DIR}/charts/${CHART_NAME}
    helm repo index .
    
  2. Public charts using helm dependency update, helm package, and helm repo index. Example:

    cd ${GIT_REPOSITORY_DIR}/docs
    
    for CHART_NAME in ${CHART_NAMES[@]}; \
    do \
      helm dependency update ${GIT_REPOSITORY_DIR}/charts/${CHART_NAME}
      helm package ${GIT_REPOSITORY_DIR}/charts/${CHART_NAME}; \
    done
    
    helm repo index .