9 Kasım 2022 Çarşamba

helm install seçeneği - Install A Chart

Giriş
Söz dizimi şöyle
helm install [NAME] [CHART] [flags]
Örnek
Şöyle yaparız
$ helm install elastic-operator elastic/eck-operator -n elastic-system --create-namespace
-- debug Seçeneği - Detaylı Çıktı Gösterir
Açıklaması şöyle
It enables the verbose output when the helm command runs.
Örnek - debug
Şöyle yaparız
$ helm install elastic-operator elastic/eck-operator -n elastic-system 
  --create-namespace --debug
-- dry-run Seçeneği
Açıklaması şöyle
Helm comes up with the dry run option for debugging. Use this option when you don’t want to install the chart but want to validate and debug only against the Kubernetes cluster. It is similar to kubectl dry-run option. It will validate the Chart deployment against the K8s cluster by loading the data into it.
Örnek 
Şöyle yaparız
$ helm install elastic-operator elastic/eck-operator -n elastic-system 
  --create-namespace --values custom.yaml --dry-run
Örnek 
Şöyle yaparız. Bize tüm yaml'ları gösterir.
$helm install sample-service ./sample-service --dry-run --debug
install.go:149: [debug] Original chart version: "" install.go:166: [debug] CHART PATH: /Users/...../k8s-helm-sample-service/helm/sample-service NAME: sample-service LAST DEPLOYED: Tue Nov 9 16:49:53 2021 NAMESPACE: default STATUS: pending-install REVISION: 1 USER-SUPPLIED VALUES: {} COMPUTED VALUES: affinity: {} fullnameOverride: "" image: pullPolicy: IfNotPresent repository: sample-service imagePullSecrets: [] ingress: annotations: {} enabled: false hosts: - host: chart-example.local paths: [] tls: [] nameOverride: "" nodeSelector: {} podSecurityContext: {} replicaCount: 1 resources: {} securityContext: {} service: port: 80 type: ClusterIP serviceAccount: annotations: {} create: true name: null tolerations: [] HOOKS: --- # Source: sample-service/templates/tests/test-connection.yaml apiVersion: v1 kind: Pod metadata: name: "sample-service-1636505393-test-connection" labels: helm.sh/chart: sample-service-0.1.0 app.kubernetes.io/name: sample-service app.kubernetes.io/instance: sample-service-1636505393 app.kubernetes.io/version: "1.16.0" app.kubernetes.io/managed-by: Helm annotations: "helm.sh/hook": test-success spec: containers: - name: wget image: busybox command: ['wget'] args: ['sample-service-1636505393:80'] restartPolicy: Never MANIFEST: --- # Source: sample-service/templates/serviceaccount.yaml apiVersion: v1 kind: ServiceAccount metadata: name: sample-service-1636505393 labels: helm.sh/chart: sample-service-0.1.0 app.kubernetes.io/name: sample-service app.kubernetes.io/instance: sample-service-1636505393 app.kubernetes.io/version: "1.16.0" app.kubernetes.io/managed-by: Helm --- # Source: sample-service/templates/service.yaml apiVersion: v1 kind: Service metadata: name: sample-service-1636505393 labels: helm.sh/chart: sample-service-0.1.0 app.kubernetes.io/name: sample-service app.kubernetes.io/instance: sample-service-1636505393 app.kubernetes.io/version: "1.16.0" app.kubernetes.io/managed-by: Helm spec: type: ClusterIP ports: - port: 80 targetPort: http protocol: TCP name: http selector: app.kubernetes.io/name: sample-service app.kubernetes.io/instance: sample-service-1636505393 --- # Source: sample-service/templates/deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: sample-service-1636505393 labels: helm.sh/chart: sample-service-0.1.0 app.kubernetes.io/name: sample-service app.kubernetes.io/instance: sample-service-1636505393 app.kubernetes.io/version: "1.16.0" app.kubernetes.io/managed-by: Helm spec: replicas: 1 selector: matchLabels: app.kubernetes.io/name: sample-service app.kubernetes.io/instance: sample-service-1636505393 template: metadata: labels: app.kubernetes.io/name: sample-service app.kubernetes.io/instance: sample-service-1636505393 spec: serviceAccountName: sample-service-1636505393 securityContext: {} containers: - name: sample-service securityContext: {} image: "sample-service:1.16.0" imagePullPolicy: IfNotPresent ports: - name: http containerPort: 80 protocol: TCP livenessProbe: httpGet: path: / port: http readinessProbe: httpGet: path: / port: http resources: {}
--set seçeneği
Örnek
Şöyle yaparız
helm install apisix apisix/apisix \
  --namespace ingress-apisix \
  --create-namespace \
  --devel \                              
  --set gateway.type=NodePort \                        
  --set gateway.http.nodePort=30800 \
  --set ingress-controller.enabled=true \
  --set ingress-controller.config.kubernetes.enableApiGateway=true \
  --set ingressPublishService="ingress-apisix/apisix-gateway"
--values seçeneği
Örnek
Şöyle yaparız
helm install jenkins jenkinsci/jenkins 
  --values jenkins.yaml -n jenkins --create-namespace

Hiç yorum yok:

Yorum Gönder

Cluster Propotional Autoscaler - ReplicaSet Ekler/Siler

Giriş Açıklaması şöyle CPA aims to horizontally scale the number of Pod replicas based on the cluster’s scale. A common example is DNS ser...