From 00d92b73f839dbd7adb7bc527f34384d30371360 Mon Sep 17 00:00:00 2001 From: na Date: Fri, 30 Aug 2024 16:13:10 +0200 Subject: [PATCH] push helm Charts and kube Components --- Helm/oc-catalog/Chart.yaml | 5 ++ Helm/oc-catalog/templates/service.yml | 12 +++++ Helm/oc-catalog/templates/statefulset.yml | 33 ++++++++++++ Helm/oc-catalog/values.yaml | 19 +++++++ Helm/oc-deploy/.helmignore | 23 +++++++++ Helm/oc-deploy/Chart.lock | 12 +++++ Helm/oc-deploy/Chart.yaml | 14 +++++ Helm/oc-deploy/charts/oc-catalog-0.1.0.tgz | Bin 0 -> 841 bytes Helm/oc-deploy/charts/oc-catalog/Chart.yaml | 5 ++ .../charts/oc-catalog/templates/service.yml | 12 +++++ .../oc-catalog/templates/statefulset.yml | 33 ++++++++++++ Helm/oc-deploy/charts/oc-catalog/values.yaml | 19 +++++++ Helm/oc-deploy/charts/oc-mongo-0.1.0.tgz | Bin 0 -> 968 bytes .../charts/oc-mongo-express-0.1.0.tgz | Bin 0 -> 847 bytes .../charts/oc-mongo-express/Chart.yaml | 5 ++ .../oc-mongo-express/templates/service.yaml | 12 +++++ .../templates/statefulset.yaml | 39 ++++++++++++++ .../charts/oc-mongo-express/values.yaml | 18 +++++++ Helm/oc-deploy/charts/oc-mongo/Chart.yaml | 5 ++ .../charts/oc-mongo/templates/pvc.yaml | 10 ++++ .../charts/oc-mongo/templates/secret.yaml | 8 +++ .../charts/oc-mongo/templates/service.yaml | 11 ++++ .../oc-mongo/templates/statefulset.yaml | 31 +++++++++++ Helm/oc-deploy/charts/oc-mongo/values.yaml | 19 +++++++ Helm/oc-deploy/values.yaml | 48 ++++++++++++++++++ Helm/oc-mongo-express/Chart.yaml | 5 ++ Helm/oc-mongo-express/templates/service.yaml | 12 +++++ .../templates/statefulset.yaml | 39 ++++++++++++++ Helm/oc-mongo-express/values.yaml | 18 +++++++ Helm/oc-mongo/Chart.yaml | 5 ++ Helm/oc-mongo/templates/pvc.yaml | 10 ++++ Helm/oc-mongo/templates/secret.yaml | 8 +++ Helm/oc-mongo/templates/service.yaml | 11 ++++ Helm/oc-mongo/templates/statefulset.yaml | 31 +++++++++++ Helm/oc-mongo/values.yaml | 19 +++++++ oc-catalog/oc-catalog-deployment.yml | 29 +++++++++++ oc-catalog/oc-catalog-service.yml | 13 +++++ .../mongo-express-deployment.yml | 32 ++++++++++++ .../mongo-express/mongo-express-service.yml | 13 +++++ oc-mongo/mongo/mongo-deployment.yml | 42 +++++++++++++++ oc-mongo/mongo/mongo-secret.yml | 9 ++++ oc-mongo/mongo/mongo-service.yml | 12 +++++ 42 files changed, 701 insertions(+) create mode 100644 Helm/oc-catalog/Chart.yaml create mode 100644 Helm/oc-catalog/templates/service.yml create mode 100644 Helm/oc-catalog/templates/statefulset.yml create mode 100644 Helm/oc-catalog/values.yaml create mode 100644 Helm/oc-deploy/.helmignore create mode 100644 Helm/oc-deploy/Chart.lock create mode 100644 Helm/oc-deploy/Chart.yaml create mode 100644 Helm/oc-deploy/charts/oc-catalog-0.1.0.tgz create mode 100644 Helm/oc-deploy/charts/oc-catalog/Chart.yaml create mode 100644 Helm/oc-deploy/charts/oc-catalog/templates/service.yml create mode 100644 Helm/oc-deploy/charts/oc-catalog/templates/statefulset.yml create mode 100644 Helm/oc-deploy/charts/oc-catalog/values.yaml create mode 100644 Helm/oc-deploy/charts/oc-mongo-0.1.0.tgz create mode 100644 Helm/oc-deploy/charts/oc-mongo-express-0.1.0.tgz create mode 100644 Helm/oc-deploy/charts/oc-mongo-express/Chart.yaml create mode 100644 Helm/oc-deploy/charts/oc-mongo-express/templates/service.yaml create mode 100644 Helm/oc-deploy/charts/oc-mongo-express/templates/statefulset.yaml create mode 100644 Helm/oc-deploy/charts/oc-mongo-express/values.yaml create mode 100644 Helm/oc-deploy/charts/oc-mongo/Chart.yaml create mode 100644 Helm/oc-deploy/charts/oc-mongo/templates/pvc.yaml create mode 100644 Helm/oc-deploy/charts/oc-mongo/templates/secret.yaml create mode 100644 Helm/oc-deploy/charts/oc-mongo/templates/service.yaml create mode 100644 Helm/oc-deploy/charts/oc-mongo/templates/statefulset.yaml create mode 100644 Helm/oc-deploy/charts/oc-mongo/values.yaml create mode 100644 Helm/oc-deploy/values.yaml create mode 100644 Helm/oc-mongo-express/Chart.yaml create mode 100644 Helm/oc-mongo-express/templates/service.yaml create mode 100644 Helm/oc-mongo-express/templates/statefulset.yaml create mode 100644 Helm/oc-mongo-express/values.yaml create mode 100644 Helm/oc-mongo/Chart.yaml create mode 100644 Helm/oc-mongo/templates/pvc.yaml create mode 100644 Helm/oc-mongo/templates/secret.yaml create mode 100644 Helm/oc-mongo/templates/service.yaml create mode 100644 Helm/oc-mongo/templates/statefulset.yaml create mode 100644 Helm/oc-mongo/values.yaml create mode 100644 oc-catalog/oc-catalog-deployment.yml create mode 100644 oc-catalog/oc-catalog-service.yml create mode 100644 oc-mongo/mongo-express/mongo-express-deployment.yml create mode 100644 oc-mongo/mongo-express/mongo-express-service.yml create mode 100644 oc-mongo/mongo/mongo-deployment.yml create mode 100644 oc-mongo/mongo/mongo-secret.yml create mode 100644 oc-mongo/mongo/mongo-service.yml diff --git a/Helm/oc-catalog/Chart.yaml b/Helm/oc-catalog/Chart.yaml new file mode 100644 index 0000000..490589d --- /dev/null +++ b/Helm/oc-catalog/Chart.yaml @@ -0,0 +1,5 @@ +apiVersion: v2 +name: oc-catalog +description: A Helm chart for deploying the oc-catalog application +version: 0.1.0 +appVersion: "1.0" diff --git a/Helm/oc-catalog/templates/service.yml b/Helm/oc-catalog/templates/service.yml new file mode 100644 index 0000000..e290a41 --- /dev/null +++ b/Helm/oc-catalog/templates/service.yml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ .Release.Name }}-oc-catalog +spec: + selector: + app: {{ .Chart.Name }} + ports: + - protocol: TCP + port: {{ .Values.service.port }} + targetPort: {{ .Values.service.targetPort }} + type: {{ .Values.service.type }} diff --git a/Helm/oc-catalog/templates/statefulset.yml b/Helm/oc-catalog/templates/statefulset.yml new file mode 100644 index 0000000..47aeb40 --- /dev/null +++ b/Helm/oc-catalog/templates/statefulset.yml @@ -0,0 +1,33 @@ +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: {{ .Release.Name }}-oc-catalog + labels: + app: oc-catalog +spec: + serviceName: "{{ .Release.Name }}-oc-catalog" + replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + app: oc-catalog + template: + metadata: + labels: + app: oc-catalog + spec: + containers: + - name: oc-catalog + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + ports: + - containerPort: 8080 + env: + - name: MONGO_DATABASE + value: "DC_myDC" + - name: MONGO_URI + value: "mongodb://mongo:27017" + imagePullSecrets: + {{- if .Values.imagePullSecrets }} + {{- range .Values.imagePullSecrets }} + - name: {{ .name }} + {{- end }} + {{- end }} diff --git a/Helm/oc-catalog/values.yaml b/Helm/oc-catalog/values.yaml new file mode 100644 index 0000000..d76b83a --- /dev/null +++ b/Helm/oc-catalog/values.yaml @@ -0,0 +1,19 @@ +replicaCount: 1 + +image: + repository: registry.dev.svc.cluster.local:5000/oc-catalog + tag: latest + pullPolicy: IfNotPresent + +service: + type: NodePort + port: 8087 + targetPort: 8080 + +mongo: + database: DC_myDC + uri: mongodb://mongo:27017 + +imagePullSecrets: + - name: regcred + diff --git a/Helm/oc-deploy/.helmignore b/Helm/oc-deploy/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/Helm/oc-deploy/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/Helm/oc-deploy/Chart.lock b/Helm/oc-deploy/Chart.lock new file mode 100644 index 0000000..a994431 --- /dev/null +++ b/Helm/oc-deploy/Chart.lock @@ -0,0 +1,12 @@ +dependencies: +- name: oc-mongo + repository: file://../oc-mongo + version: 0.1.0 +- name: oc-mongo-express + repository: file://../oc-mongo-express + version: 0.1.0 +- name: oc-catalog + repository: file://../oc-catalog + version: 0.1.0 +digest: sha256:036af8acf7fe0a73f039776d13f63aeb7530e7a8b0febb49fd5e8415ac6672c6 +generated: "2024-08-27T14:34:41.6038407+02:00" diff --git a/Helm/oc-deploy/Chart.yaml b/Helm/oc-deploy/Chart.yaml new file mode 100644 index 0000000..40903e8 --- /dev/null +++ b/Helm/oc-deploy/Chart.yaml @@ -0,0 +1,14 @@ +apiVersion: v2 +name: oc-deploy +description: A Helm chart to deploy oc-mongo, oc-mongo-express, and oc-catalog together +version: 0.1.0 +dependencies: + - name: oc-mongo + version: 0.1.0 + repository: "file://../oc-mongo" + - name: oc-mongo-express + version: 0.1.0 + repository: "file://../oc-mongo-express" + - name: oc-catalog + version: 0.1.0 + repository: "file://../oc-catalog" diff --git a/Helm/oc-deploy/charts/oc-catalog-0.1.0.tgz b/Helm/oc-deploy/charts/oc-catalog-0.1.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..ccb3cc7f4182c24906d0f75a1755f02d0faffd85 GIT binary patch literal 841 zcmV-P1GfAhiwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PI&$Z`(Ey_A`IQ!S9wSOLhvrWzMh_*j%IO`dTp5MG;1c1W6eX z0{{1cqGZdiwrp7Hps2qWCFFfap2+XhS&5n8j!Tu#*H7HIsNtoYye=rEbd{#%+g( zIHFUMp%tdkt{u9CUs0AI{7r#JWgtT>RZ~|;Wdg3XECly7Qt=YmV3O?mC1?~! zl)Uvj_>nQt|BlNV?Kd!hm-L?|^j!bxa&guFC19}C=~~s5V-OQklsrd901Rqn3#UxO zz+hfjXPPL(U1WD660)`qO(d1zk}WBv^MSqr9M2g@?$9~{pld0&N*1DF@cwb5+}5DQ z$`NAG>`Il65>LrR)-5%MzJC&$; z9Vd8E|BL0B{+H=8z3TrGIQjm^TjBkJEt?oMtSr(e2LO`cN*2as4~)@UfN_-D`Nj3;K`K^t}IHC9C+V|4U$~f3CHi zA5EaU1o!CvyAc3L{(#aB3}DnITHS5hjMINkISnm|Z&vJyc!wQK(D$kPl-!A@-v+z+ zdOraD-R~%aay{e;dyEgz*W@8o<#@&S5i9^9UCy%@7Y(=j_0u7 zPY-zpW*SyJ>|)S0^|M&*hM{3|zkk^L^5M(f?WfzHZts6SOarvP3>Zwi{%ZO+%s)Q9 zA0dr)VSS3RUd-e9c?QMfX~l!EqxJhh!>b(sMeK3E{$*B&&rqKSt88@Otu=bZ6<1vG TE$~+W00960Bh9%902TlMHXWp^ literal 0 HcmV?d00001 diff --git a/Helm/oc-deploy/charts/oc-catalog/Chart.yaml b/Helm/oc-deploy/charts/oc-catalog/Chart.yaml new file mode 100644 index 0000000..490589d --- /dev/null +++ b/Helm/oc-deploy/charts/oc-catalog/Chart.yaml @@ -0,0 +1,5 @@ +apiVersion: v2 +name: oc-catalog +description: A Helm chart for deploying the oc-catalog application +version: 0.1.0 +appVersion: "1.0" diff --git a/Helm/oc-deploy/charts/oc-catalog/templates/service.yml b/Helm/oc-deploy/charts/oc-catalog/templates/service.yml new file mode 100644 index 0000000..4540d6b --- /dev/null +++ b/Helm/oc-deploy/charts/oc-catalog/templates/service.yml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: oc-catalog +spec: + selector: + app: {{ .Chart.Name }} + ports: + - protocol: TCP + port: {{ .Values.service.port }} + targetPort: {{ .Values.service.targetPort }} + type: {{ .Values.service.type }} diff --git a/Helm/oc-deploy/charts/oc-catalog/templates/statefulset.yml b/Helm/oc-deploy/charts/oc-catalog/templates/statefulset.yml new file mode 100644 index 0000000..308856c --- /dev/null +++ b/Helm/oc-deploy/charts/oc-catalog/templates/statefulset.yml @@ -0,0 +1,33 @@ +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: {{ .Release.Name }}-oc-catalog + labels: + app: oc-catalog +spec: + serviceName: "oc-catalog" + replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + app: oc-catalog + template: + metadata: + labels: + app: oc-catalog + spec: + containers: + - name: oc-catalog + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + ports: + - containerPort: 8080 + env: + - name: MONGO_DATABASE + value: "DC_myDC" + - name: MONGO_URI + value: "mongodb://{{ .Release.Name }}-mongo:27017" + imagePullSecrets: + {{- if .Values.imagePullSecrets }} + {{- range .Values.imagePullSecrets }} + - name: {{ .name }} + {{- end }} + {{- end }} diff --git a/Helm/oc-deploy/charts/oc-catalog/values.yaml b/Helm/oc-deploy/charts/oc-catalog/values.yaml new file mode 100644 index 0000000..55812e7 --- /dev/null +++ b/Helm/oc-deploy/charts/oc-catalog/values.yaml @@ -0,0 +1,19 @@ +replicaCount: 1 + +image: + repository: registry.dev.svc.cluster.local:5000/oc-catalog + tag: latest + pullPolicy: IfNotPresent + +service: + type: NodePort + port: 8087 + targetPort: 8080 + +mongo: + database: DC_myDC + uri: mongodb://oc-deploy-mongo:27017 + +imagePullSecrets: + - name: regcred + diff --git a/Helm/oc-deploy/charts/oc-mongo-0.1.0.tgz b/Helm/oc-deploy/charts/oc-mongo-0.1.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..f3f9580b13f343354769a99c09d8a9e03eef0789 GIT binary patch literal 968 zcmV;(12_C1iwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PL90kJ>mC$2t42cw!Gd0SU=~WT}U04&9ZuQ`D|z&&GK`v`*~W z4l7#mzposV5Hhf|+AMUWd@m@m{bHN<`TB?CqfF*&IeFYLZO1#7i9y#2f*_d1arqkr zLHjod=d(c=&t_2+NAoxu1mScZ1p^2=@5vbz#xgw!{`0rmgL@@nDt$(6QkhfOP6<=0 zejJA5U`P@)T&K#GuinA0C^FzKS70SIB&dYkrTH4{2BAtO;4)J($J~;fWk~A+vaNy# z<8U01dyl?X&Ht8(0?q$o0N41BXY&^SQ8*8K{%;|TN~D}U$|AQELPFAvt&tJ{jY^u- zO1-1t;RUd4O+he=#u5Nk2(geNe-uBo_>bdiNC6c!bx_F0M|!$-l=jAUq8!Yn(I z`|TTypZ&VgAbaczVZSFvA*Uz&8uth=y43Pm)3tXVWMrXv)lTD=0*yU90T?T_bE`|? zoH@8a_nzdRSZDb6KH8xLT;qQ_Yw!Ob!iQMZ}|=B+yexVrvFQJep0+MoY# zq6_?&8SoOx5F2^*0A3X>o^Vn^dGA` zuxMPeRK?r!==QWToFYr0@|Lt)}(Xp$^D3BzT+O4oHT-_P?? q_-~QbxkD;#e3-izPv3J;y*GrtdiCmc2mKQO0RR8iNh~4&9smGyJJz-U literal 0 HcmV?d00001 diff --git a/Helm/oc-deploy/charts/oc-mongo-express-0.1.0.tgz b/Helm/oc-deploy/charts/oc-mongo-express-0.1.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..ceddd766bd471fda297b9432c6585f89ef7beca0 GIT binary patch literal 847 zcmV-V1F-xbiwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PI&^Z~8VA0NuxTkWgE5# z<-1Rg`I7`%s!_F?n)5~#2ft5^89|k*YkS=ztDa38;u4QL31y0j#X*w|ZF3XXbBXiS zn{UuM(Ep0EC8`fKfK&SSy>4CqeZSHFr$C}$aY#pend$&M$B7dfVc-Br6kNrc%Pgpg z8$i=207f+`?Er`+V-wEeFbm*%G3I(AQDLebN162a98#=WQw3l{mtdP zG`bCaQ!_fyzs5uqCws9uyz{N#r2e~pP5%Spkw*WYfy(>eb6(C0=ypy1&bE>Hk zmQ~(*4ek^fQiblACJ1?6d&Mh(q2ViJ7-}xf-vCsILl-fYpzL@DgyfosoCR<{niR3E zXP7k~?OSPkCCvcj`G!_@lOyE)u$^L^<`^*(W<%e~3EtAbrWzMZrtr+~ffM@glK!Bs z|3SCW|EHj=e=3B!*qgxS_-Cm9lMw(g`WG_wssZesqLAOX$lE@dxNUnA)3vCIjLWTz zReIHf5~{=JKT0*dVoO^EY-W|VZon!DUP%G4-JC(lQ%&O(