helm发布更新案例(二)

韵味老鸟 2024-07-21 15:08:47

helm 发布更新 案例(二)

步骤四:#设定参数

#IMAGE_DIR meta

#APP_VERSION.$BUILD_NUMBER 0.0.1.77 app_version在cicd文件中仅三位数,末尾为构建数字

参数

描述

默认值

controller.image.repository

镜像地址

controller.image.tag

镜像tag

0.30.0

controller.image.digest

镜像描述

""

--set cluster=$IMAGE_DIR,controller.image.tag=$APP_VERSION.$BUILD_NUMBER -n metaverse

###模版数据

umi-mo

#Chart.yaml

apiVersion: v2name: umi-modescription: A Helm chart for Kubernetestype: applicationversion: 0.1.0appVersion: 0.0.1

values-dev.yaml

# Default values for umi-mo.# This is a YAML-formatted file.# Declare variables to be passed into your templates.nameOverride: "umi-mo"fullnameOverride: "umi-mo"replicaCount: 1image: repository: harbor.umi.com/meta/dev/umi-mo pullPolicy: Always # Overrides the image tag whose default is the chart appVersion. tag: ""imagePullSecrets: - name: meta-harborenv: - name: DEPLOY_TIMESTAMP value: "$DEPLOY_TIMESTAMP"volumeMounts: {} # - name: datadir # mountPath: /files # subPath: files # - name: config # mountPath: /home/app.yml # subPath: app.ymlvolumes: {} # - name: datadir # persistentVolumeClaim: # claimName: umi-admin # - name: config # configMap: # name: umi-adminpersistentVolumeClaim: {} # storageClassName: nfs-client # storage: 20Gi# configMapconfig: enabled: false env: "dev"serviceAccount: # Specifies whether a service account should be created create: false # Annotations to add to the service account annotations: {} # The name of the service account to use. # If not set and create is true, a name is generated using the fullname template name: ""podAnnotations: {}podSecurityContext: {} # fsGroup: 2000securityContext: {} # capabilities: # drop: # - ALL # readOnlyRootFilesystem: true # runAsNonRoot: true # runAsUser: 1000service: enabled: true type: ClusterIP ports: - name: http port: 80 targetPort: 80 protocol: TCPingress: enabled: true Name: "nginx" annotations: # kubernetes.io/ingress.class: nginx # kubernetes.io/tls-acme: "true" nginx.ingress.kubernetes.io/proxy-body-size: 3072m hosts: - host: sz-umi-mo-dev.umi.com paths: - path: / pathType: Prefix serviceName: umi-mo servicePort: 80 - path: /admin pathType: Prefix serviceName: umi-admin servicePort: 80 - path: /company pathType: Prefix serviceName: umi-company servicePort: 80 - path: /api pathType: Prefix serviceName: umi-gateway servicePort: 80 tls: - secretName: umi-meta-tls hosts: - sz-umi-mo-dev.umi-meta.comresources: {} # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little # resources, such as Minikube. If you do want to specify resources, uncomment the following # lines, adjust them as necessary, and remove the curly braces after 'resources:'. # limits: # cpu: 100m # memory: 128Mi # requests: # cpu: 100m # memory: 128Miautoscaling: enabled: false minReplicas: 1 maxReplicas: 100 targetCPUUtilizationPercentage: 80 targetMemoryUtilizationPercentage: 80nodeSelector: {}tolerations: []affinity: {}testpod: create: false

0 阅读:0