generated from redhat-scholars/courseware-template
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Helm Chart update - Adding Helm Chart
- Loading branch information
1 parent
ddb08a0
commit d2ba5c8
Showing
6 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
documentation/modules/ROOT/examples/bgd-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,8 @@ | ||
apiVersion: v2 | ||
name: bgd | ||
description: Blue-Green | ||
|
||
type: application | ||
|
||
version: 1.0.0 | ||
appVersion: 1.16.0 |
7 changes: 7 additions & 0 deletions
7
documentation/modules/ROOT/examples/bgd-helm-chart/custom_values_1/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,7 @@ | ||
replicas: 1 | ||
color: green | ||
|
||
image: | ||
name: quay.io/rhdevelopers/bgd | ||
tag: "1.0.0" | ||
pullPolicy: IfNotPresent |
34 changes: 34 additions & 0 deletions
34
documentation/modules/ROOT/examples/bgd-helm-chart/templates/deployment.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,34 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: {{ .Release.Name }} | ||
name: {{ .Release.Name }} | ||
spec: | ||
replicas: {{ .Values.replicas }} | ||
selector: | ||
matchLabels: | ||
app: {{ .Release.Name }} | ||
strategy: {} | ||
template: | ||
metadata: | ||
labels: | ||
app: {{ .Release.Name }} | ||
spec: | ||
containers: | ||
- image: {{ .Values.image.name }}:{{ .Values.image.tag }} | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
name: {{ .Chart.Name }} | ||
env: | ||
- name: COLOR | ||
value: {{ .Values.color }} | ||
resources: {} | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
capabilities: | ||
drop: | ||
- ALL | ||
securityContext: | ||
runAsNonRoot: true | ||
seccompProfile: | ||
type: RuntimeDefault |
13 changes: 13 additions & 0 deletions
13
documentation/modules/ROOT/examples/bgd-helm-chart/templates/route.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,13 @@ | ||
apiVersion: route.openshift.io/v1 | ||
kind: Route | ||
metadata: | ||
labels: | ||
app: {{ .Release.Name }} | ||
name: {{ .Release.Name }} | ||
spec: | ||
port: | ||
targetPort: 8080 | ||
to: | ||
kind: Service | ||
name: {{ .Release.Name }} | ||
weight: 100 |
13 changes: 13 additions & 0 deletions
13
documentation/modules/ROOT/examples/bgd-helm-chart/templates/svc.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,13 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: {{ .Release.Name }} | ||
name: {{ .Release.Name }} | ||
spec: | ||
ports: | ||
- port: 8080 | ||
protocol: TCP | ||
targetPort: 8080 | ||
selector: | ||
app: {{ .Release.Name }} |
7 changes: 7 additions & 0 deletions
7
documentation/modules/ROOT/examples/bgd-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,7 @@ | ||
replicas: 1 | ||
color: yellow | ||
|
||
image: | ||
name: quay.io/rhdevelopers/bgd | ||
tag: "1.0.0" | ||
pullPolicy: IfNotPresent |