Skip to content

Commit

Permalink
Add cluster capability
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Zimmermann <kai.zimmermann@microsoft.com>
  • Loading branch information
kaizimmerm committed Apr 4, 2019
1 parent c5af3ff commit be77ee3
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
6 changes: 6 additions & 0 deletions deployment/helm/eclipse-ditto/templates/ditto-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
replicas: {{ .Values.concierge.replicaCount }}
template:
metadata:
labels:
Expand Down Expand Up @@ -84,6 +85,7 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
replicas: {{ .Values.connectivity.replicaCount }}
template:
metadata:
labels:
Expand Down Expand Up @@ -156,6 +158,7 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
replicas: {{ .Values.things.replicaCount }}
template:
metadata:
labels:
Expand Down Expand Up @@ -228,6 +231,7 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
replicas: {{ .Values.search.replicaCount }}
template:
metadata:
labels:
Expand Down Expand Up @@ -299,6 +303,7 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
replicas: {{ .Values.policies.replicaCount }}
template:
metadata:
labels:
Expand Down Expand Up @@ -370,6 +375,7 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
replicas: {{ .Values.gateway.replicaCount }}
template:
metadata:
labels:
Expand Down
1 change: 1 addition & 0 deletions deployment/helm/eclipse-ditto/templates/nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
replicas: {{ .Values.nginx.replicaCount }}
template:
metadata:
labels:
Expand Down
3 changes: 2 additions & 1 deletion deployment/helm/eclipse-ditto/templates/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
replicas: {{ .Values.swagger.replicaCount }}
template:
metadata:
labels:
app: swagger-ui
spec:
containers:
- name: swagger-ui
image: docker.io/swaggerapi/swagger-ui:3.17.4
image: docker.io/swaggerapi/swagger-ui:{{ .Values.swagger.version }}
volumeMounts:
- name: swagger-ui-api
mountPath: /usr/share/nginx/html/openapi
Expand Down
12 changes: 12 additions & 0 deletions deployment/helm/eclipse-ditto/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,45 +15,57 @@ akka:
global:
timezone: Europe/Berlin


concierge:
name: concierge
replicaCount: 2
image:
repository: docker.io/eclipse/ditto-concierge
imagePullPolicy: IfNotPresent
tag: 0.9.0-M1
connectivity:
name: connectivity
replicaCount: 2
image:
repository: docker.io/eclipse/ditto-connectivity
imagePullPolicy: IfNotPresent
tag: 0.9.0-M1
things:
name: things
replicaCount: 2
image:
repository: docker.io/eclipse/ditto-things
imagePullPolicy: IfNotPresent
tag: 0.9.0-M1
search:
name: things-search
replicaCount: 2
image:
repository: docker.io/eclipse/ditto-things-search
imagePullPolicy: IfNotPresent
tag: 0.9.0-M1
policies:
name: policies
replicaCount: 2
image:
repository: docker.io/eclipse/ditto-policies
imagePullPolicy: IfNotPresent
tag: 0.9.0-M1
gateway:
name: gateway
replicaCount: 2
image:
repository: docker.io/eclipse/ditto-gateway
imagePullPolicy: IfNotPresent
tag: 0.9.0-M1

nginx:
replicaCount: 2
version: 1.15
swagger:
replicaCount: 1
version: 3.17.4


##
## MongoDB chart configuration
Expand Down

0 comments on commit be77ee3

Please sign in to comment.