Skip to content

This is the Experimental version (Latest). It is under active development and may change. For the most reliable documentation, use the version selector in the top-right to switch to Stable, or click here to go to the Stable version's homepage.

Reloader Installation

Last updated:

Reloader is a Secret Re-injection into Pods Utility


Reloader can have multiple instances dedicated to each of Workload Type Kubernetes Cluster.

  1. Create Helm Value Configurations

    Terminal window
    cat <<EOF > $BASE_WORKING_DIR/helm-values/reloader-full-values.yaml
    reloader:
    deployment:
    # Kubernetes Security Context
    securityContext:
    runAsNonRoot: true
    runAsUser: 65534
    seccompProfile:
    type: RuntimeDefault
    containerSecurityContext:
    allowPrivilegeEscalation: false
    seccompProfile:
    type: RuntimeDefault
    capabilities:
    drop: ["ALL"]
    EOF
  1. Before connect please load variables based on cluster.

    Terminal window
    source $BASE_WORKING_DIR/shell-values/kubernetes/CHANGEME_cluster.vars.sh
  1. Add Reloader Helm Repository.

    Terminal window
    # Add Helm Repository
    helm repo add stakater https://stakater.github.io/stakater-charts
    helm repo update
  2. Install Reloader on Kubernetes Cluster.

    • Install a Helm Release with specific Helm Chart Version --version 2.1.3 (App Version: v1.4.2)

      Terminal window
      # Install Reloader Helm Release
      helm upgrade --install reloader stakater/reloader --version 2.1.3 \
      --namespace devsecops-system \
      -f $BASE_WORKING_DIR/helm-values/reloader-full-values.yaml
  1. Connect to Kubernetes Cluster ; i.e w/ Kubeconfig File

    Terminal window
    source $BASE_WORKING_DIR/shell-values/kubernetes/CHANGEME_cluster.vars.sh
  2. Get Pod Status - Reloader

    Terminal window
    kubectl get pods -n devsecops-system

    Reloader should be `Running

    NAME READY STATUS RESTARTS AGE
    ... (deducted)
    reloader-reloader-XXXXXXX-YYYY 1/1 Running 0 XdXh

Finished?

Use the below navigation to proceed