Reloader Installation
Reloader is a Secret Re-injection into Pods Utility
Reloader can have multiple instances dedicated to each of Workload Type Kubernetes Cluster.
Pre-Installation
Section titled “Pre-Installation”Reloader Preparation
Section titled “Reloader Preparation”-
Create Helm Value Configurations
Terminal window cat <<EOF > $HOME/opstella-installation/helm-values/reloader-full-values.yamlreloader:deployment:# Kubernetes Security ContextsecurityContext:runAsNonRoot: truerunAsUser: 65534seccompProfile:type: RuntimeDefaultcontainerSecurityContext:allowPrivilegeEscalation: falseseccompProfile:type: RuntimeDefaultcapabilities:drop: ["ALL"]EOF
Complete Prerequisites
Section titled “Complete Prerequisites”Kubernetes Cluster
Section titled “Kubernetes Cluster”-
Export Required Shell Variables
Section titled “Export Required Shell Variables”Before connect please load variables based on cluster.
Terminal window source $HOME/opstella-installation/shell-values/kubernetes/CHANGEME_cluster.vars.shExport these variables in your terminal before proceeding with the installation.
# Infrastructureexport KUBECONFIG="$HOME/opstella-installation/kubeconfigs/CHANGEME_cluster.yaml"
Installation
Section titled “Installation”-
Add Reloader Helm Repository.
Terminal window # Add Helm Repositoryhelm repo add stakater https://stakater.github.io/stakater-chartshelm repo update -
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 Releasehelm install reloader stakater/reloader --version 2.1.3 \--namespace devsecops-system \-f $HOME/opstella-installation/helm-values/reloader-full-values.yaml
-
Post-Installation
Section titled “Post-Installation”Reloader Testing
Section titled “Reloader Testing”-
Connect to Kubernetes Cluster ; i.e w/ Kubeconfig File
Set Kubeconfig File
Terminal window export KUBECONFIG="$HOME/opstella-installation/kubeconfigs/CHANGEME_cluster.yaml" -
Get Pod Status - Reloader
Terminal window kubectl get pods -n devsecops-systemReloader 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