Skip to content

Commit d2dab5d

Browse files
authored
Merge pull request #1142 from yyyangw/feature/helm_charts_update
修改“helm charts 部署方式的相关配置”
2 parents e9cdae7 + 5c99f9d commit d2dab5d

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

helm-charts/tca/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ The command removes all the Kubernetes components associated with the chart and
4949
| `global.imagePullPolicy` | Global Docker image registry | `""` |
5050
| `global.imagePullSecrets` | Global Docker registry secret names as an array | `[]` |
5151

52+
To create a secret to pull an image from a private container image registry or repository:
53+
```Bash
54+
$ kubectl create secret docker-registry ${SECRET_NAME} --docker-server=${DOCKER_SERVER} --docker-username=${DOCKER_USERNAME} --docker-password=${DOCKER_PASSWORD} --docker-email=${DOCKER_EMAIL}
55+
```
56+
5257
### TCA Metric parameters
5358
| Name | Description | Value |
5459
| ------------------------------------------------------- | ------------------------------------------------------- | -------------- |

helm-charts/tca/templates/client/configmap-conf.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ data:
3939
[LICENSE_CONFIG]
4040
; [可选]使用自研工具时,需要填写,默认不需要
4141
; license服务器url, base_path, license
42-
URL=
42+
URL={{ .Values.tca.commonConfig.clsServerUrl }}
4343
BASE_PATH=
44-
LICENSE=
44+
LICENSE={{ .Values.tca.commonConfig.clsServerLicense }}
4545

helm-charts/tca/templates/ingress.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ metadata:
99
chart: {{ template "tca.chart" . }}
1010
release: {{ .Release.Name }}
1111
spec:
12+
ingressClassName: nginx
1213
rules:
1314
- host: {{ .Values.tca.commonConfig.publicUrl }}
1415
http:

helm-charts/tca/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ global:
88
imagePullPolicy: IfNotPresent
99
## E.g.
1010
## imagePullSecrets:
11-
## - myRegistryKeySecretName
11+
## -name: myRegistryKeySecretName
1212
##
1313
imagePullSecrets: []
1414

server/projects/main/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3.7-slim-bullseye
22

3-
ARG EXTRA_TOOLS="gnupg curl wget jq net-tools procps default-libmysqlclient-dev locales inotify-tools gcc telnet iputils-ping vim openssh-client"
3+
ARG EXTRA_TOOLS="gnupg curl wget jq net-tools procps default-libmysqlclient-dev locales inotify-tools gcc telnet iputils-ping vim openssh-client ncat"
44

55
RUN set -ex && cd / \
66
&& apt-get update \

web/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM nginx:1.13.7
22

33
RUN apt-get update && apt-get install -y unzip procps && rm /etc/nginx/conf.d/default.conf
44

5-
COPY ./tca-deploy-source /data/tca-deploy-source
5+
COPY tca-deploy-source /data/tca-deploy-source
66

7-
WORKDIR /data/tca-deploy-source
7+
WORKDIR /data/tca-deploy-source/
88

0 commit comments

Comments
 (0)