Commit 08f5aad9 by 李辉02

添加聚合脚本

parent aa168c11
apiVersion: v2
appVersion: "0.0.1"
description: A Helm chart for deploying multiple apps together
name: commander-deploy
type: application
version: "0.0.1"
dependencies:
- name: commander-data-check
repository: file://charts/commander-data-check
version: 0.0.1
- name: commander-ifs
repository: file://charts/commander-ifs
version: 0.0.1
- name: commander-web
repository: file://charts/commander-web
version: 0.0.1
- name: commander-web-api
repository: file://charts/commander-web-api
version: 0.0.1
\ No newline at end of file
apiVersion: v2
appVersion: "0.0.1"
name: common
type: library
version: "0.0.1"
# 共享chart
只能在聚合部署的时候使用
## 添加仓库到本地
```shell
helm repo add k8s-t0-commander https://k8s-t0.tencentcloudcr.com/chartrepo/commander --username 你的账号 --password 你的密码
```
## 打包
```shell
# 指定版本号
helm package . --version 0.0.1 --destination d:/helmCharts
# 使用chart里面的版本号
helm package . --destination d:/helmCharts
```
## 上传
```shell
#
C:\Users\admin\AppData\Roaming\helm\plugins\helm-push\bin\helm-cm-push.exe d:/helmCharts/common-0.0.1.tgz k8s-t0-commander
# 查询
helm search repo k8s-t0-commander
# 更新
helm repo update
```
## 安装
需要在k8s集群上执行
```shell
helm install common k8s-t0-commander/common --version 0.0.1 -n commander-standard-dev --create-namespace
helm install common k8s-t0-commander/common -n commander-standard-dev --create-namespace
# 预检
helm install common k8s-t0-commander/common -n commander-standard-dev --dry-run
```
## 查询
```shell
helm list -n commander-standard-dev
```
## 卸载
```shell
helm uninstall common -n commander-standard-dev
```
## 更新
```shell
helm upgrade common k8s-t0-commander/common -n commander-standard-dev
```
{{- define "app.imagePullSecrets" -}}
{{- if .Values.global.imagePullSecrets }}
{{- if eq .Values.global.imagePullSecrets "none" }}
imagePullSecrets: []
{{- else }}
imagePullSecrets:
- name: {{ .Values.global.imagePullSecrets }}
{{- end }}
{{- else }}
imagePullSecrets: []
{{- end }}
{{- end -}}
\ No newline at end of file
global:
imagePullSecrets: tcr.ipstcr-public
app:
namespace: commander-standard-dev
replicas: 1
imageUrl: k8s-t0.tencentcloudcr.com/commander/
apiHost: commander-api.aipark.com
nacos:
ip: "nacos-headless.nacos.svc.cluster.local"
port: "8848"
pass: "zhht2023"
profiles_active: "prod"
\ No newline at end of file
# 违停支付项目一键部署helm脚本
## 命令
```shell
helm package . --destination d:/helmCharts
C:\Users\admin\AppData\Roaming\helm\plugins\helm-push\bin\helm-cm-push.exe d:/helmCharts/commander-deploy-0.0.1.tgz k8s-t0-commander
helm install commander-deploy k8s-t0-commander/commander-deploy -n commander-standard-dev --dry-run
helm install commander-deploy k8s-t0-commander/commander-deploy -n commander-standard-dev
```
\ No newline at end of file
#违停支付项目一键部署helm脚本
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment