Skip to content

YkeLit/application-chart-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Application-chart-template

通用 Helm Chart 模版

Edit releasename.values.yaml

  1. Set imageCredentials for image pulling
imageCredentials: 
  registry: registry.cn-hangzhou.aliyuncs.com
  username: deploy-man@skylark
  password: changeit
  1. Set image info for image pulling
image:
  repository: skylark/production
  tag: "latest"
  pullPolicy: IfNotPresent
  1. Set host for app
# Application 代理设置
applicationHost: 
  - factory.jet.localhost

# traefik 代理匹配规则
traefik:
  - name: web
    path: /
  1. Set environments for app
# 根据实际需要填写环境变量
env:
  auth: YKeLit
  ...

Install

# set release-name install
helm install -f $release_name.values.yaml release-name ./

HowTo

Setup TLS

注:# 使用命令 base64 -i tlsFile 生成 certificatekey 的值

# $release_name.values.yaml

jetFactoryTLSSecret:
  certificate: |-
    base64 encoded certificate
  key: |-
    base64 encoded key

Set initContainers for app

initContainers: {}
  - name: init
    image: busybox:latest
    command: ["sh", "-c"]
    args: 
      - 
         ls -a
    envFrom:
      - configMapRef:
          name: {{ .Chart.Name }}

Set application volumes

volumeMounts: {}
  - mountPath: /path/file
    name: volumeName

volumes: {}
  - name: volumeName
    hostPath: 
      path: /local/path
      type: DirectoryOrCreate

Set import external service

externalEndPoint: {}
  - name: ""
    ip: ""
    port: ""

externalService: {}
  - name: ""
    port: ""
    targetPort: ""

Uninstall

helm uninstall release-name

Upgrade

helm upgrade -f $release_name.values.yaml release-name ./

指定 namespace 请使用一下参数

--namespace jet-factory : 指定名称空间

--create-namespace : 创建名称空间

About

通用 helm chart 模版

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages