feat: add helm support for governance module (#3256)
parent
ff43f837d6
commit
09d1f389e6
@ -0,0 +1,5 @@
|
||||
apiVersion: v1
|
||||
appVersion: '1.0'
|
||||
description: Spring Cloud Alibaba Governance Example
|
||||
name: governance-example
|
||||
version: 1.0.0
|
@ -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 }}
|
@ -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
|
@ -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 }}
|
@ -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
|
@ -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
|
@ -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 }}
|
@ -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
|
@ -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"
|
@ -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
|
@ -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
|
@ -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
|
Loading…
Reference in New Issue