Skip to content

Commit

Permalink
Helm Chart update - Adding Helm Chart
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewsome97 authored Nov 29, 2023
1 parent ddb08a0 commit d2ba5c8
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 0 deletions.
8 changes: 8 additions & 0 deletions documentation/modules/ROOT/examples/bgd-helm-chart/Chart.yaml
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
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
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
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
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 }}
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

0 comments on commit d2ba5c8

Please sign in to comment.