Showing posts with label helm. Show all posts
Showing posts with label helm. Show all posts

Thursday, January 19, 2023

helm k8s

helm basic commands

Helm is a package manager for Kubernetes that allows you to easily install and manage applications on a cluster. Here are some basic commands used in Helm:

    helm init: This command initializes Helm on your local machine and sets up the necessary resources in the Kubernetes cluster. It should be run once before using any other Helm commands.

    helm repo add: This command adds a new Helm chart repository to your local machine. This is used to download charts from different sources.

    helm search: This command searches for charts in the repositories you have added to your local machine.

    helm install: This command installs a chart on your Kubernetes cluster. You can specify the chart name and a release name to identify this installation.

    helm list: This command lists all of the releases that have been installed on your cluster using Helm.

    helm status: This command shows the current status of a release, including the resources that were created, the version of the chart, and any available updates.

    helm delete: This command deletes a release and all of the resources it created.

    helm upgrade: This command upgrades an existing release to a new version of the chart.

    helm rollback: This command rolls back a release to a previous version.

    helm template: This command generates the resource manifest files from a chart. It can be useful for debugging a chart or for creating a custom resource manifest.

Monday, September 5, 2022

helm commands


helm -h --- help command
helm completion bash --- to display the output of
helm list ---- to display the version
helm create (name) ---- to create the helm chart
helm depandency build (folder name) ---- to build the
helm dep list (name) ---- to list the dependency
helm dep update (dir name) --- it will update
helm dep update (dir name) ---- it will update
helm env ----- to display the helm environment
helm get (all,hooks,values,notes,manifest) (name) ---- to display the information
helm install (name) (dir helm name) (opction --set (name=value))
helm history (name) ---- to display the history
helm del (kube-name) (helm name) ---- delete the chart
helm lint (chart name) ---- check the error to
helm ls ---- to list the helm pakages
helm pakage (name) ----- to convert into compressed file
helm diff upgrade (kub name) ( helm name) --
helm pull (chart name) ---- to pull the helm
helm repo add
helm repo update
helm repo remove
helm rollback (name) 1 ---- to create another one
helm search hub (name) --- to search the chart
helm search repo (name) --- to search the chart
helm status name
helm install --debug --dry-run (relese-name) (chart folder) ---- to
helm get manifest (relese-name) ---- to display the set
helm install --dry-run --debug --set costCode=SS45877
sai ./mychart/ --- to set from input using set

--set (name=value)
sprig library to use function on helm

{{ .Values.data}} ---- to pass the value from the

{{- if eq .Values.data "us-e" }}
style: true
{{- end }} ---- to use (-) in starting


{{- with .Values.tags }}
{{- toYaml . | nindent 2 }} --- to
machine: {{ .machine }}
{{- end }}
------ doesn't use the multiple line

notes.txt ---- is used to write a commands in
helm template sai ./mychart --- to display the template
helm get values name --- to get a used
helm history name --- to display error and log
--atomic ---- when chat goes error it forward to
--timeout 7m3s ---- to control the time out
--fource --- when upgrade happend it will stop all
--cleanup-on-failure --- when upgrade goes fail total fail log

chart.yaml {
apiVersion:
name:
description:
icon:
keywords:
home:
sources:
maintainers:
}
helm package name ----- to convert into zip file
helm lint name ---- to check the error log

functions{
- to avoid a blank spaces
include --- to use pipeline
qoutes
template
upper
default
nindent 4 --- new line with indent of 4
}

define variable
{{ $myValue := "sai" }} --- assign a value
{{ $myValue = "gok" }} --- reassign a value
{{-if myValue }}

for loop
{{- range .Values.mychart.contry }}
{{ . | upper | qoutes }}
{{- end }}

for loop disnory
{{ - range $key, $value := .Values.image }}
- {{ $key }}: {{ $value }}
{{- end }}

helm get manifest name ---- to see the detail
helm depandency update name ---- to update depandencny on

Argocd with rollouts examples

examples in My github https://github.com/krishnansai/argocd-rollouts.git ArogoCd with ArgoRollouts Rollouts.yml # This example demonst...