-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2c3f9c2
commit 2fcdbbf
Showing
7 changed files
with
171 additions
and
116 deletions.
There are no files selected for viewing
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
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
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
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 @@ | ||
{{if .Values.redis.enabled}} | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
metadata: | ||
name: {{ default "redis" .Values.redis.name }} | ||
namespace: {{ include "vechr.namespace" . }} | ||
labels: | ||
app.kubernetes.io/component: vechr-redis | ||
app.kubernetes.io/instance: {{ default "redis" .Values.redis.name }} | ||
app.kubernetes.io/name: redis | ||
app.kubernetes.io/part-of: vechr-iiot | ||
app.kubernetes.io/version: {{ default "latest" .Values.redis.deployment.tag }} | ||
spec: | ||
replicas: {{ default 1 .Values.redis.replicas }} | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/component: vechr-redis | ||
app.kubernetes.io/instance: {{ default "redis" .Values.redis.name }} | ||
app.kubernetes.io/name: redis | ||
app.kubernetes.io/part-of: vechr-iiot | ||
template: | ||
metadata: | ||
name: {{ default "redis" .Values.redis.name }} | ||
labels: | ||
app.kubernetes.io/component: vechr-redis | ||
app.kubernetes.io/instance: {{ default "redis" .Values.redis.name }} | ||
app.kubernetes.io/name: redis | ||
app.kubernetes.io/part-of: vechr-iiot | ||
app.kubernetes.io/version: {{ default "latest" .Values.redis.deployment.tag }} | ||
spec: | ||
containers: | ||
- name: {{ default "redis" .Values.redis.name }} | ||
image: {{ default "redis" .Values.redis.deployment.image }}:{{ default "latest" .Values.redis.deployment.tag }} | ||
imagePullPolicy: "IfNotPresent" | ||
ports: | ||
- containerPort: {{ default 6379 .Values.redis.deployment.port }} | ||
{{end}} |
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,27 @@ | ||
{{if .Values.redis.enabled}} | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ default "redis" .Values.redis.name }}-service | ||
namespace: {{ include "vechr.namespace" . }} | ||
labels: | ||
app.kubernetes.io/component: vechr-redis | ||
app.kubernetes.io/instance: {{ default "redis" .Values.redis.name }} | ||
app.kubernetes.io/name: redis | ||
app.kubernetes.io/part-of: vechr-iiot | ||
app.kubernetes.io/version: {{ default "latest" .Values.redis.deployment.tag }} | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app.kubernetes.io/component: vechr-redis | ||
app.kubernetes.io/instance: {{ default "redis" .Values.redis.name }} | ||
app.kubernetes.io/name: redis | ||
app.kubernetes.io/part-of: vechr-iiot | ||
ports: | ||
- protocol: TCP | ||
name: http | ||
port: {{ default 6379 .Values.redis.port }} | ||
targetPort: 6379 | ||
|
||
{{end}} |
Oops, something went wrong.