Commit 6e5e310c by 李辉02

commander改造

parent 51eb8a0a
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
apiVersion: v2
name: fileapi
description: fileapi helm chart
type: application
version: 0.0.1
appVersion: "6.1.1.25090518"
\ No newline at end of file
## 添加仓库到本地
```shell
helm repo add k8s-t0-eoc https://k8s-t0.tencentcloudcr.com/chartrepo/eoc --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/fileapi-0.0.1.tgz k8s-t0-eoc
# 查询
helm search repo k8s-t0-eoc
# 更新
helm repo update
```
## 安装
需要在k8s集群上执行
```shell
helm install fileapi k8s-t0-eoc/fileapi --version 0.0.1 -n eoc-standard-dev --create-namespace
helm install fileapi k8s-t0-eoc/fileapi -n eoc-standard-dev --create-namespace
# 预检
helm install fileapi k8s-t0-eoc/fileapi -n eoc-standard-dev --dry-run
```
## 查询
```shell
helm list -n eoc-standard-dev
```
## 卸载
```shell
helm uninstall fileapi -n eoc-standard-dev
```
## 更新
```shell
helm upgrade fileapi k8s-t0-eoc/fileapi -n eoc-standard-dev
```
{{- define "app.resources" -}}
requests:
memory: "400Mi"
cpu: "300m"
limits:
memory: "512Mi"
cpu: "500m"
{{- end -}}
{{- 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
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Chart.Name }}-config
namespace: {{ .Values.global.app.namespace }}
data:
{{- $env := (index .Values.global .Chart.Name "env") }}
{{- if $env }}
{{- range $key, $val := $env }}
{{ $key }}: {{ $val | quote }}
{{- end }}
{{- end }}
SLB_IP: {{ .Values.global.nacos.ip | quote }}
SLB_PORT: {{ .Values.global.nacos.port | quote }}
NACOS_PASS: {{ .Values.global.nacos.pass | quote }}
SPRING_PROFILES_ACTIVE: {{ .Values.global.profiles_active | quote }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Chart.Name }}
namespace: {{ .Values.global.app.namespace }}
labels:
app: {{ .Chart.Name }}
spec:
replicas: {{ .Values.global.app.replicas }}
selector:
matchLabels:
app: {{ .Chart.Name }}
template:
metadata:
labels:
app: {{ .Chart.Name }}
spec:
{{- include "app.imagePullSecrets" . | nindent 6 }}
containers:
- image: {{ .Values.global.app.imageUrl }}{{ .Chart.Name }}:{{ index .Values.global .Chart.Name "imageVersion" }}
name: {{ .Chart.Name }}
imagePullPolicy: Always
envFrom:
- configMapRef:
name: {{ .Chart.Name }}-config
env:
- name: TARGET
value: "{{ .Chart.Name }}"
ports:
- containerPort: {{ index .Values.global .Chart.Name "port" }}
protocol: TCP
resources:
{{- include "app.resources" . | nindent 12 }}
apiVersion: v1
kind: Service
metadata:
name: {{ .Chart.Name }}
namespace: {{ .Values.global.app.namespace }}
spec:
selector:
app: {{ .Chart.Name }}
type: ClusterIP
ports:
- protocol: TCP
port: 80
targetPort: {{ index .Values.global .Chart.Name "port" }}
\ No newline at end of file
# --------------------------------------------------------------------------------------------------
# 这个文件内容全部根据父chart values.yaml格式内容编写,最终全部服务都测试 helm 部署运行正常将合并到父 values.yml
# 保持规范,如果是某个微服务独有配置请通过 key 区分
# --------------------------------------------------------------------------------------------------
global:
imagePullSecrets: tcr.ipstcr-public
# ------------------------------------------------------------------------------
# app.namespace k8s环境应用部署命名空间
# app.imageUlr 应用镜像地址
# app.apiHost 域名
# ------------------------------------------------------------------------------
app:
namespace: eoc-standard-dev
replicas: 1
imageUrl: k8s-t0.tencentcloudcr.com/eoc/
apiHost: eoc-api.aipark.com
nacos:
ip: "nacos-headless.nacos.svc.cluster.local"
port: "8848"
pass: "zhht2023"
profiles_active: "prod"
# ------------------------------------------------------------------------------
fileapi:
imageVersion: "6.1.1.25090518"
port: 5610
env:
rocketmq_log_level: "ERROR"
rocketmq_log_file_maxIndex: "1"
SWAGGER_ENABLE: "false"
AIOT_AO_CAPTCHA_ENABLE: "true"
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
apiVersion: v2
name: fileapi
description: fileapi helm chart
type: application
version: 0.0.1
appVersion: "6.1.1.25090518"
\ No newline at end of file
## 添加仓库到本地
```shell
helm repo add k8s-t0-eoc https://k8s-t0.tencentcloudcr.com/chartrepo/eoc --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/fileapi-0.0.1.tgz k8s-t0-eoc
# 查询
helm search repo k8s-t0-eoc
# 更新
helm repo update
```
## 安装
需要在k8s集群上执行
```shell
helm install fileapi k8s-t0-eoc/fileapi --version 0.0.1 -n eoc-standard-dev --create-namespace
helm install fileapi k8s-t0-eoc/fileapi -n eoc-standard-dev --create-namespace
# 预检
helm install fileapi k8s-t0-eoc/fileapi -n eoc-standard-dev --dry-run
```
## 查询
```shell
helm list -n eoc-standard-dev
```
## 卸载
```shell
helm uninstall fileapi -n eoc-standard-dev
```
## 更新
```shell
helm upgrade fileapi k8s-t0-eoc/fileapi -n eoc-standard-dev
```
{{- define "app.resources" -}}
requests:
memory: "400Mi"
cpu: "300m"
limits:
memory: "512Mi"
cpu: "500m"
{{- end -}}
{{- 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
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Chart.Name }}-config
namespace: {{ .Values.global.app.namespace }}
data:
{{- $env := (index .Values.global .Chart.Name "env") }}
{{- if $env }}
{{- range $key, $val := $env }}
{{ $key }}: {{ $val | quote }}
{{- end }}
{{- end }}
SLB_IP: {{ .Values.global.nacos.ip | quote }}
SLB_PORT: {{ .Values.global.nacos.port | quote }}
NACOS_PASS: {{ .Values.global.nacos.pass | quote }}
SPRING_PROFILES_ACTIVE: {{ .Values.global.profiles_active | quote }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Chart.Name }}
namespace: {{ .Values.global.app.namespace }}
labels:
app: {{ .Chart.Name }}
spec:
replicas: {{ .Values.global.app.replicas }}
selector:
matchLabels:
app: {{ .Chart.Name }}
template:
metadata:
labels:
app: {{ .Chart.Name }}
spec:
{{- include "app.imagePullSecrets" . | nindent 6 }}
containers:
- image: {{ .Values.global.app.imageUrl }}{{ .Chart.Name }}:{{ index .Values.global .Chart.Name "imageVersion" }}
name: {{ .Chart.Name }}
imagePullPolicy: Always
envFrom:
- configMapRef:
name: {{ .Chart.Name }}-config
env:
- name: TARGET
value: "{{ .Chart.Name }}"
ports:
- containerPort: {{ index .Values.global .Chart.Name "port" }}
protocol: TCP
resources:
{{- include "app.resources" . | nindent 12 }}
apiVersion: v1
kind: Service
metadata:
name: {{ .Chart.Name }}
namespace: {{ .Values.global.app.namespace }}
spec:
selector:
app: {{ .Chart.Name }}
type: ClusterIP
ports:
- protocol: TCP
port: 80
targetPort: {{ index .Values.global .Chart.Name "port" }}
\ No newline at end of file
# --------------------------------------------------------------------------------------------------
# 这个文件内容全部根据父chart values.yaml格式内容编写,最终全部服务都测试 helm 部署运行正常将合并到父 values.yml
# 保持规范,如果是某个微服务独有配置请通过 key 区分
# --------------------------------------------------------------------------------------------------
global:
imagePullSecrets: tcr.ipstcr-public
# ------------------------------------------------------------------------------
# app.namespace k8s环境应用部署命名空间
# app.imageUlr 应用镜像地址
# app.apiHost 域名
# ------------------------------------------------------------------------------
app:
namespace: eoc-standard-dev
replicas: 1
imageUrl: k8s-t0.tencentcloudcr.com/eoc/
apiHost: eoc-api.aipark.com
nacos:
ip: "nacos-headless.nacos.svc.cluster.local"
port: "8848"
pass: "zhht2023"
profiles_active: "prod"
# ------------------------------------------------------------------------------
fileapi:
imageVersion: "6.1.1.25090518"
port: 5610
env:
rocketmq_log_level: "ERROR"
rocketmq_log_file_maxIndex: "1"
SWAGGER_ENABLE: "false"
AIOT_AO_CAPTCHA_ENABLE: "true"
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
apiVersion: v2
name: fileapi
description: fileapi helm chart
type: application
version: 0.0.1
appVersion: "6.1.1.25090518"
\ No newline at end of file
## 添加仓库到本地
```shell
helm repo add k8s-t0-eoc https://k8s-t0.tencentcloudcr.com/chartrepo/eoc --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/fileapi-0.0.1.tgz k8s-t0-eoc
# 查询
helm search repo k8s-t0-eoc
# 更新
helm repo update
```
## 安装
需要在k8s集群上执行
```shell
helm install fileapi k8s-t0-eoc/fileapi --version 0.0.1 -n eoc-standard-dev --create-namespace
helm install fileapi k8s-t0-eoc/fileapi -n eoc-standard-dev --create-namespace
# 预检
helm install fileapi k8s-t0-eoc/fileapi -n eoc-standard-dev --dry-run
```
## 查询
```shell
helm list -n eoc-standard-dev
```
## 卸载
```shell
helm uninstall fileapi -n eoc-standard-dev
```
## 更新
```shell
helm upgrade fileapi k8s-t0-eoc/fileapi -n eoc-standard-dev
```
{{- define "app.resources" -}}
requests:
memory: "400Mi"
cpu: "300m"
limits:
memory: "512Mi"
cpu: "500m"
{{- end -}}
{{- 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
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Chart.Name }}-config
namespace: {{ .Values.global.app.namespace }}
data:
{{- $env := (index .Values.global .Chart.Name "env") }}
{{- if $env }}
{{- range $key, $val := $env }}
{{ $key }}: {{ $val | quote }}
{{- end }}
{{- end }}
SLB_IP: {{ .Values.global.nacos.ip | quote }}
SLB_PORT: {{ .Values.global.nacos.port | quote }}
NACOS_PASS: {{ .Values.global.nacos.pass | quote }}
SPRING_PROFILES_ACTIVE: {{ .Values.global.profiles_active | quote }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Chart.Name }}
namespace: {{ .Values.global.app.namespace }}
labels:
app: {{ .Chart.Name }}
spec:
replicas: {{ .Values.global.app.replicas }}
selector:
matchLabels:
app: {{ .Chart.Name }}
template:
metadata:
labels:
app: {{ .Chart.Name }}
spec:
{{- include "app.imagePullSecrets" . | nindent 6 }}
containers:
- image: {{ .Values.global.app.imageUrl }}{{ .Chart.Name }}:{{ index .Values.global .Chart.Name "imageVersion" }}
name: {{ .Chart.Name }}
imagePullPolicy: Always
envFrom:
- configMapRef:
name: {{ .Chart.Name }}-config
env:
- name: TARGET
value: "{{ .Chart.Name }}"
ports:
- containerPort: {{ index .Values.global .Chart.Name "port" }}
protocol: TCP
resources:
{{- include "app.resources" . | nindent 12 }}
apiVersion: v1
kind: Service
metadata:
name: {{ .Chart.Name }}
namespace: {{ .Values.global.app.namespace }}
spec:
selector:
app: {{ .Chart.Name }}
type: ClusterIP
ports:
- protocol: TCP
port: 80
targetPort: {{ index .Values.global .Chart.Name "port" }}
\ No newline at end of file
# --------------------------------------------------------------------------------------------------
# 这个文件内容全部根据父chart values.yaml格式内容编写,最终全部服务都测试 helm 部署运行正常将合并到父 values.yml
# 保持规范,如果是某个微服务独有配置请通过 key 区分
# --------------------------------------------------------------------------------------------------
global:
imagePullSecrets: tcr.ipstcr-public
# ------------------------------------------------------------------------------
# app.namespace k8s环境应用部署命名空间
# app.imageUlr 应用镜像地址
# app.apiHost 域名
# ------------------------------------------------------------------------------
app:
namespace: eoc-standard-dev
replicas: 1
imageUrl: k8s-t0.tencentcloudcr.com/eoc/
apiHost: eoc-api.aipark.com
nacos:
ip: "nacos-headless.nacos.svc.cluster.local"
port: "8848"
pass: "zhht2023"
profiles_active: "prod"
# ------------------------------------------------------------------------------
fileapi:
imageVersion: "6.1.1.25090518"
port: 5610
env:
rocketmq_log_level: "ERROR"
rocketmq_log_file_maxIndex: "1"
SWAGGER_ENABLE: "false"
AIOT_AO_CAPTCHA_ENABLE: "true"
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
apiVersion: v2
name: fileapi
description: fileapi helm chart
type: application
version: 0.0.1
appVersion: "6.1.1.25090518"
\ No newline at end of file
## 添加仓库到本地
```shell
helm repo add k8s-t0-eoc https://k8s-t0.tencentcloudcr.com/chartrepo/eoc --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/fileapi-0.0.1.tgz k8s-t0-eoc
# 查询
helm search repo k8s-t0-eoc
# 更新
helm repo update
```
## 安装
需要在k8s集群上执行
```shell
helm install fileapi k8s-t0-eoc/fileapi --version 0.0.1 -n eoc-standard-dev --create-namespace
helm install fileapi k8s-t0-eoc/fileapi -n eoc-standard-dev --create-namespace
# 预检
helm install fileapi k8s-t0-eoc/fileapi -n eoc-standard-dev --dry-run
```
## 查询
```shell
helm list -n eoc-standard-dev
```
## 卸载
```shell
helm uninstall fileapi -n eoc-standard-dev
```
## 更新
```shell
helm upgrade fileapi k8s-t0-eoc/fileapi -n eoc-standard-dev
```
{{- define "app.resources" -}}
requests:
memory: "400Mi"
cpu: "300m"
limits:
memory: "512Mi"
cpu: "500m"
{{- end -}}
{{- 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
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Chart.Name }}-config
namespace: {{ .Values.global.app.namespace }}
data:
{{- $env := (index .Values.global .Chart.Name "env") }}
{{- if $env }}
{{- range $key, $val := $env }}
{{ $key }}: {{ $val | quote }}
{{- end }}
{{- end }}
SLB_IP: {{ .Values.global.nacos.ip | quote }}
SLB_PORT: {{ .Values.global.nacos.port | quote }}
NACOS_PASS: {{ .Values.global.nacos.pass | quote }}
SPRING_PROFILES_ACTIVE: {{ .Values.global.profiles_active | quote }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Chart.Name }}
namespace: {{ .Values.global.app.namespace }}
labels:
app: {{ .Chart.Name }}
spec:
replicas: {{ .Values.global.app.replicas }}
selector:
matchLabels:
app: {{ .Chart.Name }}
template:
metadata:
labels:
app: {{ .Chart.Name }}
spec:
{{- include "app.imagePullSecrets" . | nindent 6 }}
containers:
- image: {{ .Values.global.app.imageUrl }}{{ .Chart.Name }}:{{ index .Values.global .Chart.Name "imageVersion" }}
name: {{ .Chart.Name }}
imagePullPolicy: Always
envFrom:
- configMapRef:
name: {{ .Chart.Name }}-config
env:
- name: TARGET
value: "{{ .Chart.Name }}"
ports:
- containerPort: {{ index .Values.global .Chart.Name "port" }}
protocol: TCP
resources:
{{- include "app.resources" . | nindent 12 }}
apiVersion: v1
kind: Service
metadata:
name: {{ .Chart.Name }}
namespace: {{ .Values.global.app.namespace }}
spec:
selector:
app: {{ .Chart.Name }}
type: ClusterIP
ports:
- protocol: TCP
port: 80
targetPort: {{ index .Values.global .Chart.Name "port" }}
\ No newline at end of file
# --------------------------------------------------------------------------------------------------
# 这个文件内容全部根据父chart values.yaml格式内容编写,最终全部服务都测试 helm 部署运行正常将合并到父 values.yml
# 保持规范,如果是某个微服务独有配置请通过 key 区分
# --------------------------------------------------------------------------------------------------
global:
imagePullSecrets: tcr.ipstcr-public
# ------------------------------------------------------------------------------
# app.namespace k8s环境应用部署命名空间
# app.imageUlr 应用镜像地址
# app.apiHost 域名
# ------------------------------------------------------------------------------
app:
namespace: eoc-standard-dev
replicas: 1
imageUrl: k8s-t0.tencentcloudcr.com/eoc/
apiHost: eoc-api.aipark.com
nacos:
ip: "nacos-headless.nacos.svc.cluster.local"
port: "8848"
pass: "zhht2023"
profiles_active: "prod"
# ------------------------------------------------------------------------------
fileapi:
imageVersion: "6.1.1.25090518"
port: 5610
env:
rocketmq_log_level: "ERROR"
rocketmq_log_file_maxIndex: "1"
SWAGGER_ENABLE: "false"
AIOT_AO_CAPTCHA_ENABLE: "true"
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