ข้ามไปยังเนื้อหา

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.

Add Helm Value

อัพเดทล่าสุด:

เนื้อหานี้ยังไม่มีในภาษาของคุณ

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

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

  1. เลือก Environment

  2. กด ”+ Add Helm Value”

    🖼️ [Screenshot Placeholder: new1.png]

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

    🖼️ [Screenshot Placeholder: new2.png]

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

    🖼️ [Screenshot Placeholder: new3.png]

    🖼️ [Screenshot Placeholder: new4.png]

ตัวอย่าง สำหรับขึ้น 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 ดังรูป

    🖼️ [Screenshot Placeholder: new5.png]

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

🖼️ [Screenshot Placeholder: new6.png]

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

🖼️ [Screenshot Placeholder: new7.png]

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

🖼️ [Screenshot Placeholder: new8.png]

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

🖼️ [Screenshot Placeholder: new9.png]

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

🖼️ [Screenshot Placeholder: new10.png]

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

🖼️ [Screenshot Placeholder: new11.png]

Finished?

Use the below navigation to proceed