From aba7aacfdae83dc2512c68232e39466575ff5a01 Mon Sep 17 00:00:00 2001 From: CEE Date: Fri, 19 Jul 2024 15:03:18 +0900 Subject: [PATCH] chore: helm value --- README.md | 24 ++++++++++++++++++++++ helm/values-sample-k3s.yaml | 41 ++++++++++++++++++------------------- helm/values.yaml | 2 +- 3 files changed, 45 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 77fdb39..a940285 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,30 @@ Proxy, Mirror를 같이 하려고 했는데... 귀찮아서 proxy만 남길 예 한번하면 되지만 설치는 귀찮음 지원되는게 별로 없음 +## 초기설정시 + +### helm/chart-releaser-action +1 하위 디렉토리를 1뎁스 모두 뒤져서 chart.yaml파일을 찾는 방법으로 검증을 하게 되는데 +deproxy처럼 helm디렉토리에 차트가 하나 있는 경우는 `.`로 잡아주도록 한다 +``` +with: + chart_path: ./charts +``` +2 gh-pages 브랜치 +초기에 브랜치가 없으면 만들어줘야한다. +https://stackoverflow.com/questions/34100048/create-empty-branch-on-github +```bash +git switch --orphan gh-pages +git commit --allow-empty -m "orphan gh-pages" +git push -u origin gh-pages +``` + +3 release네임이 겹치면 안된다. 자동업데이트 하도록 +해야하지만 안하겟다 + +4 푸시할 때 마다 너무 쌓이니까 오래된걸 지우도록 +해야할 것 같지만 나중에 경고가 뜨면 생각 해 보겠다 + ## 사용법 대강 이런걸 어느 경로에 저장할까 고민으 좀 해 보는 중 diff --git a/helm/values-sample-k3s.yaml b/helm/values-sample-k3s.yaml index 06f6058..8386ae3 100644 --- a/helm/values-sample-k3s.yaml +++ b/helm/values-sample-k3s.yaml @@ -36,23 +36,23 @@ securityContext: {} service: type: ClusterIP - port: 80 + port: 8080 ingress: - enabled: false - className: "" - annotations: {} - # kubernetes.io/ingress.class: nginx - # kubernetes.io/tls-acme: "true" + enabled: true + className: traefik + annotations: + traefik.ingress.kubernetes.io/router.entrypoints: websecure + cert-manager.io/cluster-issuer: letsencrypt-prd hosts: - - host: chart-example.local + - host: deproxy.example.com.kr paths: - path: / - pathType: ImplementationSpecific - tls: [] - # - secretName: chart-example-tls - # hosts: - # - chart-example.local + pathType: Prefix + tls: + - secretName: deproxy-key + hosts: + - deproxy.example.com.kr resources: {} # We usually recommend not to specify default resources and to leave this as a conscious @@ -76,17 +76,16 @@ readinessProbe: port: http # Additional volumes on the output Deployment definition. -volumes: [] -# - name: foo -# secret: -# secretName: mysecret -# optional: false +volumes: + - name: deproxy-base-dir + hostPath: + path: /work/deproxy + type: Directory # Additional volumeMounts on the output Deployment definition. -volumeMounts: [] -# - name: foo -# mountPath: "/etc/foo" -# readOnly: true +volumeMounts: + - name: deproxy-base-dir + mountPath: /storage nodeSelector: {} diff --git a/helm/values.yaml b/helm/values.yaml index 06f6058..8f78d75 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -36,7 +36,7 @@ securityContext: {} service: type: ClusterIP - port: 80 + port: 8080 ingress: enabled: false