Skip to content

Add Helm Value

กรณีที่เราต้องการเพิ่ม Deployment โดยใช้ Image อื่น หรือ Image ภายใน Registry ของเรา ที่มีอยู่เเล้ว

มีขั้นตอน ดังนี้

  1. เลือก Environment

  2. กด ”+ Add Helm Value”

  3. หน้าต่างจะแสดงให้กรอก 2 ส่วน คือ ชื่อ และ Helm values

  4. จะแสดงตัวอย่างโดยการใช้ Helm values เดิมแต่จะเปลี่ยนไปเรียก image ของ nginx มาแทน และแก้ ingress ด้วย ดังรูป

ตัวอย่าง สำหรับขึ้น pod nginx

nameOverride: example-develop
fullnameOverride: example-develop
replicas: 1
image:
repository: nginx
tag: stable-alpine3.19-slim
pullPolicy: Always
containerPort: 80
resources:
requests:
cpu: 10m
memory: 10Mi
limits:
cpu: 500m
memory: 500Mi
ingress:
twed: true
secretName: wildcard-cert-opstella-tls
host: example.dev.demo2.opstella.in.th
ingressClassName: nginx
podSecurityContext: {}
  1. หลังจากนั้นให้กด save แล้วทำการ Sync component โดยไปยังหน้า Service Detail ดังรูป

ไปที่รายการ Component ที่ได้ทำการเพิ่ม Helm values จากนั้นทำการกด Sync component

รอจนทำรายการเสร็จแล้วเปิดไปยัง ArgoCD

ในระบบ ArgoCD มีการทำ Auto sync อยู่แล้ว แต่หากรายการที่เปลี่ยนแปลงยังไม่มาสามารถกด refresh ได้ และแนะนำกดเปลี่ยนมุมมอง เพื่อสามารถดูที่ Deploy ได้ง่ายขึ้น ดังรูป

จะเห็นว่ายุบรวมเหลือตาม Ingress จึงดูได้ง่าย และพบว่า helm values ที่เพิ่มไปได้ถูก Deploy แล้ว

กลับไปหน้า Component detail ให้กดเปิดที่เพิ่มมา

จะพบว่าสามารถ Deploy ได้สำเร็จ

Finished?

Use the below navigation to proceed