-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add helm support for governance module (#3256)
- Loading branch information
1 parent
ff43f83
commit 09d1f38
Showing
12 changed files
with
261 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
spring-cloud-alibaba-examples/governance-example/helm-chart/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v1 | ||
appVersion: '1.0' | ||
description: Spring Cloud Alibaba Governance Example | ||
name: governance-example | ||
version: 1.0.0 |
10 changes: 10 additions & 0 deletions
10
spring-cloud-alibaba-examples/governance-example/helm-chart/templates/auth-mvc-cm.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
labels: | ||
app: auth-mvc | ||
name: auth-mvc-env | ||
data: | ||
NAMESPACE_NAME: {{ .Release.Namespace | quote }} | ||
ISTIOD_ADDR: {{ .Values.istiodAddr | quote }} | ||
POLLING_TIME: {{ .Values.defaultPollingTime | quote }} |
39 changes: 39 additions & 0 deletions
39
spring-cloud-alibaba-examples/governance-example/helm-chart/templates/auth-mvc.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: auth-mvc | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: auth-mvc | ||
template: | ||
metadata: | ||
labels: | ||
appName: auth-mvc | ||
app: auth-mvc | ||
spec: | ||
containers: | ||
- name: auth-mvc | ||
image: '{{ .Values.image.authMvc.repository }}:{{ .Values.image.authMvc.tag }}' | ||
imagePullPolicy: Always | ||
ports: | ||
- name: http-port | ||
containerPort: 80 | ||
envFrom: | ||
- configMapRef: | ||
name: auth-mvc-env | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: auth-mvc | ||
labels: | ||
app: auth-mvc | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 80 | ||
name: http-server | ||
selector: | ||
app: auth-mvc |
10 changes: 10 additions & 0 deletions
10
spring-cloud-alibaba-examples/governance-example/helm-chart/templates/auth-webflux-cm.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
labels: | ||
app: auth-webflux | ||
name: auth-webflux-env | ||
data: | ||
NAMESPACE_NAME: {{ .Release.Namespace | quote }} | ||
ISTIOD_ADDR: {{ .Values.istiodAddr | quote }} | ||
POLLING_TIME: {{ .Values.defaultPollingTime | quote }} |
39 changes: 39 additions & 0 deletions
39
spring-cloud-alibaba-examples/governance-example/helm-chart/templates/auth-webflux.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: auth-webflux | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: auth-webflux | ||
template: | ||
metadata: | ||
labels: | ||
appName: auth-webflux | ||
app: auth-webflux | ||
spec: | ||
containers: | ||
- name: auth-webflux | ||
image: '{{ .Values.image.authWebflux.repository }}:{{ .Values.image.authWebflux.tag }}' | ||
imagePullPolicy: Always | ||
ports: | ||
- name: http-port | ||
containerPort: 80 | ||
envFrom: | ||
- configMapRef: | ||
name: auth-webflux-env | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: auth-webflux | ||
labels: | ||
app: auth-webflux | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 80 | ||
name: http-server | ||
selector: | ||
app: auth-webflux |
22 changes: 22 additions & 0 deletions
22
...ud-alibaba-examples/governance-example/helm-chart/templates/default-provider-version.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: default-provider-version | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: default-provider-version | ||
template: | ||
metadata: | ||
labels: | ||
appName: default-provider-version | ||
app: default-provider-version | ||
spec: | ||
containers: | ||
- name: default-provider-version | ||
image: '{{ .Values.image.defaultProviderVersion.repository }}:{{ .Values.image.defaultProviderVersion.tag }}' | ||
imagePullPolicy: Always | ||
ports: | ||
- name: feign-port | ||
containerPort: 18081 |
10 changes: 10 additions & 0 deletions
10
spring-cloud-alibaba-examples/governance-example/helm-chart/templates/istio-consumer-cm.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
labels: | ||
app: istio-consumer | ||
name: istio-consumer-env | ||
data: | ||
NAMESPACE_NAME: {{ .Release.Namespace | quote }} | ||
ISTIOD_ADDR: {{ .Values.istiodAddr | quote }} | ||
POLLING_TIME: {{ .Values.defaultPollingTime | quote }} |
25 changes: 25 additions & 0 deletions
25
spring-cloud-alibaba-examples/governance-example/helm-chart/templates/istio-consumer.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: istio-consumer | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: istio-consumer | ||
template: | ||
metadata: | ||
labels: | ||
appName: istio-consumer | ||
app: istio-consumer | ||
spec: | ||
containers: | ||
- name: istio-consumer | ||
image: '{{ .Values.image.istioConsumer.repository }}:{{ .Values.image.istioConsumer.tag }}' | ||
imagePullPolicy: Always | ||
ports: | ||
- name: feign-port | ||
containerPort: 18084 | ||
envFrom: | ||
- configMapRef: | ||
name: istio-consumer-env |
11 changes: 11 additions & 0 deletions
11
spring-cloud-alibaba-examples/governance-example/helm-chart/templates/nacos-server-cm.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
labels: | ||
app: nacos-server | ||
name: nacos-server-env | ||
data: | ||
NAMESPACE_NAME: {{ .Release.Namespace | quote }} | ||
ISTIOD_ADDR: {{ .Values.istiodAddr | quote }} | ||
POLLING_TIME: {{ .Values.defaultPollingTime | quote }} | ||
MODE: "standalone" |
47 changes: 47 additions & 0 deletions
47
spring-cloud-alibaba-examples/governance-example/helm-chart/templates/nacos-server.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: nacos-server | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: nacos-server | ||
template: | ||
metadata: | ||
labels: | ||
appName: nacos-server | ||
app: nacos-server | ||
spec: | ||
containers: | ||
- name: nacos-server | ||
image: '{{ .Values.image.nacosServer.repository }}:{{ .Values.image.nacosServer.tag }}' | ||
imagePullPolicy: Always | ||
ports: | ||
- containerPort: 8848 | ||
name: "nacos-8848" | ||
- containerPort: 9848 | ||
name: "nacos-9848" | ||
- containerPort: 9849 | ||
name: "nacos-9849" | ||
envFrom: | ||
- configMapRef: | ||
name: nacos-server-env | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: nacos-server | ||
labels: | ||
app: nacos-server | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 8848 | ||
name: "nacos-8848" | ||
- port: 9848 | ||
name: "nacos-9848" | ||
- port: 9849 | ||
name: "nacos-9849" | ||
selector: | ||
app: nacos-server |
22 changes: 22 additions & 0 deletions
22
spring-cloud-alibaba-examples/governance-example/helm-chart/templates/provider-version.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: provider-version | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: provider-version | ||
template: | ||
metadata: | ||
labels: | ||
appName: provider-version | ||
app: provider-version | ||
spec: | ||
containers: | ||
- name: provider-version | ||
image: '{{ .Values.image.providerVersion.repository }}:{{ .Values.image.providerVersion.tag }}' | ||
imagePullPolicy: Always | ||
ports: | ||
- name: feign-port | ||
containerPort: 18082 |
21 changes: 21 additions & 0 deletions
21
spring-cloud-alibaba-examples/governance-example/helm-chart/values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
image: | ||
authMvc: | ||
repository: registry.cn-shenzhen.aliyuncs.com/sca-demo/auth-demo-mvc | ||
tag: develop | ||
authWebflux: | ||
repository: registry.cn-shenzhen.aliyuncs.com/sca-demo/auth-demo-webflux | ||
tag: develop | ||
defaultProviderVersion: | ||
repository: registry.cn-shenzhen.aliyuncs.com/sca-demo/default-provider-version-example | ||
tag: develop | ||
providerVersion: | ||
repository: registry.cn-shenzhen.aliyuncs.com/sca-demo/provider-version-example | ||
tag: develop | ||
istioConsumer: | ||
repository: registry.cn-shenzhen.aliyuncs.com/sca-demo/istio-consumer-example | ||
tag: develop | ||
nacosServer: | ||
repository: nacos/nacos-server | ||
tag: v2.1.0 | ||
istiodAddr: istiod.istio-system.svc.cluster.local | ||
defaultPollingTime: 60 |