From d2ba5c83d13836e11918145d3031a9b51159dd11 Mon Sep 17 00:00:00 2001 From: Josh Newsome <50967636+jnewsome97@users.noreply.github.com> Date: Wed, 29 Nov 2023 12:04:03 +0000 Subject: [PATCH] Helm Chart update - Adding Helm Chart --- .../ROOT/examples/bgd-helm-chart/Chart.yaml | 8 +++++ .../custom_values_1/values.yaml | 7 ++++ .../bgd-helm-chart/templates/deployment.yaml | 34 +++++++++++++++++++ .../bgd-helm-chart/templates/route.yaml | 13 +++++++ .../bgd-helm-chart/templates/svc.yaml | 13 +++++++ .../ROOT/examples/bgd-helm-chart/values.yaml | 7 ++++ 6 files changed, 82 insertions(+) create mode 100644 documentation/modules/ROOT/examples/bgd-helm-chart/Chart.yaml create mode 100644 documentation/modules/ROOT/examples/bgd-helm-chart/custom_values_1/values.yaml create mode 100644 documentation/modules/ROOT/examples/bgd-helm-chart/templates/deployment.yaml create mode 100644 documentation/modules/ROOT/examples/bgd-helm-chart/templates/route.yaml create mode 100644 documentation/modules/ROOT/examples/bgd-helm-chart/templates/svc.yaml create mode 100644 documentation/modules/ROOT/examples/bgd-helm-chart/values.yaml diff --git a/documentation/modules/ROOT/examples/bgd-helm-chart/Chart.yaml b/documentation/modules/ROOT/examples/bgd-helm-chart/Chart.yaml new file mode 100644 index 0000000..1e9303e --- /dev/null +++ b/documentation/modules/ROOT/examples/bgd-helm-chart/Chart.yaml @@ -0,0 +1,8 @@ +apiVersion: v2 +name: bgd +description: Blue-Green + +type: application + +version: 1.0.0 +appVersion: 1.16.0 \ No newline at end of file diff --git a/documentation/modules/ROOT/examples/bgd-helm-chart/custom_values_1/values.yaml b/documentation/modules/ROOT/examples/bgd-helm-chart/custom_values_1/values.yaml new file mode 100644 index 0000000..7b7097c --- /dev/null +++ b/documentation/modules/ROOT/examples/bgd-helm-chart/custom_values_1/values.yaml @@ -0,0 +1,7 @@ +replicas: 1 +color: green + +image: + name: quay.io/rhdevelopers/bgd + tag: "1.0.0" + pullPolicy: IfNotPresent diff --git a/documentation/modules/ROOT/examples/bgd-helm-chart/templates/deployment.yaml b/documentation/modules/ROOT/examples/bgd-helm-chart/templates/deployment.yaml new file mode 100644 index 0000000..36e8f9b --- /dev/null +++ b/documentation/modules/ROOT/examples/bgd-helm-chart/templates/deployment.yaml @@ -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 \ No newline at end of file diff --git a/documentation/modules/ROOT/examples/bgd-helm-chart/templates/route.yaml b/documentation/modules/ROOT/examples/bgd-helm-chart/templates/route.yaml new file mode 100644 index 0000000..e64ada7 --- /dev/null +++ b/documentation/modules/ROOT/examples/bgd-helm-chart/templates/route.yaml @@ -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 diff --git a/documentation/modules/ROOT/examples/bgd-helm-chart/templates/svc.yaml b/documentation/modules/ROOT/examples/bgd-helm-chart/templates/svc.yaml new file mode 100644 index 0000000..ba8a012 --- /dev/null +++ b/documentation/modules/ROOT/examples/bgd-helm-chart/templates/svc.yaml @@ -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 }} diff --git a/documentation/modules/ROOT/examples/bgd-helm-chart/values.yaml b/documentation/modules/ROOT/examples/bgd-helm-chart/values.yaml new file mode 100644 index 0000000..7431e9b --- /dev/null +++ b/documentation/modules/ROOT/examples/bgd-helm-chart/values.yaml @@ -0,0 +1,7 @@ +replicas: 1 +color: yellow + +image: + name: quay.io/rhdevelopers/bgd + tag: "1.0.0" + pullPolicy: IfNotPresent