From d2a7fafb33737cfbaf43307bc7047b60cb47430a Mon Sep 17 00:00:00 2001 From: Amarpreet Minhas Date: Tue, 3 Jan 2023 16:19:01 +0000 Subject: [PATCH 1/2] First pass --- library/common/.helmignore | 23 ++++++ library/common/Chart.yaml | 5 ++ library/common/common-0.1.0.tgz | Bin 0 -> 14269 bytes library/common/templates/_NOTES.txt | 7 ++ library/common/templates/_deployment.yaml | 64 +++++++++++++++++ library/common/templates/_helpers.tpl.bak | 62 ++++++++++++++++ library/common/templates/_hpa.yaml | 30 ++++++++ library/common/templates/_service.yaml | 13 ++++ sudoscientist-go-backend/Chart.lock | 8 +-- sudoscientist-go-backend/Chart.yaml | 4 +- .../charts/common-1.2.0.tgz | Bin 27879 -> 0 bytes sudoscientist-go-backend/templates/NOTES.txt | 22 ------ .../templates/_helpers.tpl | 63 +---------------- .../templates/deployment.yaml | 66 +----------------- .../templates/ingress.yaml | 61 ---------------- .../templates/service.yaml | 16 +---- .../templates/serviceaccount.yaml | 12 ---- .../templates/tests/test-connection.yaml | 15 ---- sudoscientist-go-backend/values.yaml | 23 ------ 19 files changed, 213 insertions(+), 281 deletions(-) create mode 100644 library/common/.helmignore create mode 100644 library/common/Chart.yaml create mode 100644 library/common/common-0.1.0.tgz create mode 100644 library/common/templates/_NOTES.txt create mode 100644 library/common/templates/_deployment.yaml create mode 100644 library/common/templates/_helpers.tpl.bak create mode 100644 library/common/templates/_hpa.yaml create mode 100644 library/common/templates/_service.yaml delete mode 100644 sudoscientist-go-backend/charts/common-1.2.0.tgz delete mode 100644 sudoscientist-go-backend/templates/ingress.yaml delete mode 100644 sudoscientist-go-backend/templates/serviceaccount.yaml delete mode 100644 sudoscientist-go-backend/templates/tests/test-connection.yaml delete mode 100644 sudoscientist-go-backend/values.yaml diff --git a/library/common/.helmignore b/library/common/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/library/common/.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/library/common/Chart.yaml b/library/common/Chart.yaml new file mode 100644 index 0000000..b591dc9 --- /dev/null +++ b/library/common/Chart.yaml @@ -0,0 +1,5 @@ +apiVersion: v2 +name: common +description: Asara's common library chart +type: library +version: 0.1.0 diff --git a/library/common/common-0.1.0.tgz b/library/common/common-0.1.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..1591017194e949354e19c1eeab7b8348ce62577f GIT binary patch literal 14269 zcmV;uH$uoCiwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PMPTSkznBHx5dPpeQK@Lr8arbW5j*)Bpnv3^T*b(4iusfOJTA zNlAyaG)Sj(cX$6T^@PWB?)N;```pj{T<`Te>yMdX?X~t=JJx4^_VELZM)&`PXJ7=v%P^p{7VdTxVw%0N4y*0)wJ}U?>tmB?+-bqCg0F zRVo0hHV|S9Lb4)32s^L|i1jNr09;*h0RWH#9ELyvR8^!5mBp2$g=y%mY>h!CCnQvwrnPKtU)Fk`)YN z`|2p{>n%P1i z(C^5K`xVE&+WvBmKw+rgtbw*D7}5j?0YlAMK~SJE1Z4XC^gw{V!4vWiegC4AgxNw- z-_3qN7XSbWf`Cj=FvQnb0Dv_RWn!TSGzLMC-xUDBUmqiXm;S%<{q;2Yd;eeS?U%%U zn7*&_bqw}kl*Mm-z+tB1P$&%b4V;lbr0~1)SKsg6DA-e=H3Yy4Z~;KUP*V^T1>pbP z?GJMV0Q|Zde;FEV4KxR-+Cm^2AQJ=#^+WKVTmBmvd|jz;Y(d<_*bcbMsC0wGv=RFbaln1h~2i{;3%SGzYkREp?zR1odm;;&Avcwf&Xu{2b-$ z(yGEBU=znbE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J~u0jj^2Tg6_Vv%L+#_oPrhp%5=~cS)WXNfPT$JL5B-v07-9l6LAwm-`&7~m2 zaFNUQkTiVp0Ka(0?C+3hLncag`ha@==l4vICfaM{dHA^NT3>1)j*qP?I+pNMKE z6Jep%vx77GTN)PK(!li%W{EN1K|bLRty$GhWdk`-)stI$3bW{``+;wVXQ~Zmp`&+h z#Sc*+S%s{d44-YXkh|uiXSO%gTx`QnyP+3t?*|%Flw%tGi@cf@rGhIHpAmAI%g!pP z2=VCoP}ml+EGHD)G19jihb%WbSruvBpdu+*yIxjshpJbdtKWtFqa<jxNm~^4Q2vs9DKrP&}Us=332gyb)mB zv!y{F7u#*SAy6h68bC;=9%xsqW^=rt+k>O><>-ayYq~YH&(A6|_%G)f)6m;Mg@H@>b=W* zS!17J!L*`}+b>rjx9l}!cV#zwK4az$jk`AkR zFgZ8?VeQAu7lAviXgIwM;|a5o9~cTJbi|*zVyeHb8el;8+S0`_XuGlfe6c61##(WdGw`%MY=maxnHB2iSp8V2QFQqia&d$N{;nkv48L^KbX> z_-xzQyDC?UG`>GeI*^=dzN+E<^6F~!qCKYvV}vnj-&@huXTj2yw|m$$^p=}VEP>_E zeU&|ImXmX+4Og`#lC>QJicZRTrrRG8t&5zQZxNcWs@&O&u&ikdc`^yF(KzP6pIhCu zCAKzx?jXd-*-D3ITbSvd37#n+m>p)hnQSKH9!Dh*Jr)W35aPxr4+=HeZSs!*yR~s5sN{aum+8Prfd#fB3dl z3G#eo`IRXjC8$CA?K7Wkl6%sXNuP}GSNUaOArspjhoXsMO$EU!O4b>U{GuslQuk zAL-s3e|yxR-eKCmhoA2}anW>NyzH(~xTHfvySyxeuW6#G f{%`-I|3C7N{3HL!PxAi-00960p$d7x09XJ36$3w< literal 0 HcmV?d00001 diff --git a/library/common/templates/_NOTES.txt b/library/common/templates/_NOTES.txt new file mode 100644 index 0000000..084e08c --- /dev/null +++ b/library/common/templates/_NOTES.txt @@ -0,0 +1,7 @@ +1. Get the application URL by running these commands: +{{- if contains "ClusterIP" .Values.service.type }} + export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "common.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") + export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") + echo "Visit http://127.0.0.1:8080 to use your application" + kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT +{{- end }} diff --git a/library/common/templates/_deployment.yaml b/library/common/templates/_deployment.yaml new file mode 100644 index 0000000..1910db9 --- /dev/null +++ b/library/common/templates/_deployment.yaml @@ -0,0 +1,64 @@ +{{ define "common.deployment" }} +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ .Values.common.fullname }} +spec: + {{- if not .Values.autoscaling.enabled }} + replicas: {{ .Values.replicaCount }} + {{- end }} + selector: + matchLabels: + app.kubernetes.io/name: {{ .Values.common.fullname }} + app.kubernetes.io/instance: {{ .Values.common.fullname }} + template: + metadata: + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 8 }} + {{- end }} + spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} + serviceAccountName: {{ .Values.common.serviceAccountName }} + securityContext: + {{- toYaml .Values.podSecurityContext | nindent 8 }} + containers: + - name: {{ .Chart.Name }} + securityContext: + {{- toYaml .Values.securityContext | nindent 12 }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + env: + {{- if .Values.env }} + {{- toYaml .Values.env | nindent 12 }} + {{- end }} + ports: + - name: http + containerPort: {{ .Values.service.port }} + protocol: TCP + livenessProbe: + httpGet: + path: / + port: http + readinessProbe: + httpGet: + path: / + port: http + resources: + {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} +{{- end }} diff --git a/library/common/templates/_helpers.tpl.bak b/library/common/templates/_helpers.tpl.bak new file mode 100644 index 0000000..5c3f420 --- /dev/null +++ b/library/common/templates/_helpers.tpl.bak @@ -0,0 +1,62 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "common.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "common.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "common.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "common.labels" -}} +helm.sh/chart: {{ include "common.chart" . }} +{{ include "common.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "common.selectorLabels" -}} +app.kubernetes.io/name: {{ include "common.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "common.serviceAccountName" -}} +{{- if .Values.serviceAccount.create }} +{{- default (include "common.fullname" .) .Values.serviceAccount.name }} +{{- else }} +{{- default "default" .Values.serviceAccount.name }} +{{- end }} +{{- end }} diff --git a/library/common/templates/_hpa.yaml b/library/common/templates/_hpa.yaml new file mode 100644 index 0000000..e992187 --- /dev/null +++ b/library/common/templates/_hpa.yaml @@ -0,0 +1,30 @@ +{{ define "common.hpa" }} +{{- if .Values.autoscaling.enabled }} +apiVersion: autoscaling/v2beta1 +kind: HorizontalPodAutoscaler +metadata: + name: {{ include "common.fullname" . }} + labels: + {{- include "common.labels" . | nindent 4 }} +spec: + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ include "common.fullname" . }} + minReplicas: {{ .Values.autoscaling.minReplicas }} + maxReplicas: {{ .Values.autoscaling.maxReplicas }} + metrics: + {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} + - type: Resource + resource: + name: cpu + targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} + {{- end }} + {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} + - type: Resource + resource: + name: memory + targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} + {{- end }} +{{- end }} +{{- end }} diff --git a/library/common/templates/_service.yaml b/library/common/templates/_service.yaml new file mode 100644 index 0000000..e52a750 --- /dev/null +++ b/library/common/templates/_service.yaml @@ -0,0 +1,13 @@ +{{ define "common.service" }} +apiVersion: v1 +kind: Service +metadata: + name: {{ .Values.common.fullname }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.port }} + targetPort: http + protocol: TCP + name: http +{{- end }} diff --git a/sudoscientist-go-backend/Chart.lock b/sudoscientist-go-backend/Chart.lock index acbdb3c..c4e1487 100644 --- a/sudoscientist-go-backend/Chart.lock +++ b/sudoscientist-go-backend/Chart.lock @@ -1,6 +1,6 @@ dependencies: - name: common - repository: https://bjw-s.github.io/helm-charts/ - version: 1.2.0 -digest: sha256:4a59834889563e94dab9d298b62e8a095be18c459593c42307f99d5f1ea51027 -generated: "2022-12-31T18:26:05.702450278Z" + repository: https://charts.minhas.io + version: 0.1.0 +digest: sha256:406bfea256905aa3e1ea4e4af7420db7a78a674d3e967316970e52077012bb5d +generated: "2023-01-03T04:06:37.22850766Z" diff --git a/sudoscientist-go-backend/Chart.yaml b/sudoscientist-go-backend/Chart.yaml index 1a4c534..cbfb26c 100644 --- a/sudoscientist-go-backend/Chart.yaml +++ b/sudoscientist-go-backend/Chart.yaml @@ -7,5 +7,5 @@ appVersion: "1.16.0" # bjw-s common chart dependencies: - name: common - version: 1.2.0 - repository: https://bjw-s.github.io/helm-charts/ + version: 0.1.0 + repository: https://charts.minhas.io diff --git a/sudoscientist-go-backend/charts/common-1.2.0.tgz b/sudoscientist-go-backend/charts/common-1.2.0.tgz deleted file mode 100644 index 33e54e556459286fe21492686e5da4ba09424535..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 27879 zcmV)6K*+xziwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PMYcbK5r7IJ|%BQ()!n#LjC`zQyjV=gIzlshzZWHW!cWq_a<_ z6GJ2BfUv_r)4vu#I0(Kq%m&#Kx4)ee4 z+_|l=bAOTt5<)rTm=ZSV00482M=<7-Vi;lCk0+3f5gUN7y$%2X^uQG+$pDP-7nI01 z03?XTInD%#0eCGw0ES}m^F5p*Kqv=8gvl6CSq7$HL~}5P99_dX$Z5e5TLpNQ<0;JN zJ_Im<)C}~Qs0YjXNJ_!&I6O@A-iN(rKX^P`{2WI$_KvvY4?RES< z6+}(}NbxWiqb0`tN0d%MEOt8UOz0F1z=ZRR4f_2tmNOpHX@B_Zb&vHYD4q6H(LT=+ z>Q5mief>hi>?_*QxkB@6nkQ_~=>h$!XWH#t6+>jPeERnnyV2fWwA0&p+7S>{zhq4` zg*Y96Df+(>gD63>4v@1r0P;;o{jFONgE_FR%uEZr(O$IE`Mo#QpXkx_e+JV6u?J!R z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+maqL5Zydt6PwTMIyU5Hi?w=G1Vp4wIiEEhyQ zZ6o=mD#gx>akL?LMD@tQO5u0Ct(#nDa@2#s3d-hiJ5Z%=6MUyd_F61OK9wct=byP9 zziDeS9s#=QF!`1qz&h+8PPdM&4_S7_^G|7RTWLHJ6a{p5AfkE!QN% zk+28MIypSgpg5Y_5LAweA^LFn4t|C0!^;8LHmFLJb6M?@+&VSgYu|94VPvBXGIZrS z{KC5S7w}9?YJ!kc=ju+7U&@y+-UVGbI5t8&XH_G9HYtEGyaa%Hk-3ZaMNz>iGL~zM zi`!fYgB%EF zt$PgewYiVc;(R6YF0;DX{At#8gId}#ivNqT9rSg;k*+~z3+b%TDyU}JF2my9kD;U; zeuiJozP&w*IU4lvJXYz>fth|Zt2cSIQ-zy%PatWEX2D)aLkgWVKIDEkjJKO}_^#y{ ziobq!7rXto{We%$`oG1|pQDF|c+wUb)QQeO?~|Kd13>69mdKcwVk$?nQ~-&fG71MA z9bLG=uWTg>HM9oiQj08cftz8Wv*hk<_`;!_>1gTmwUWk&x$MJCJu^ee*%p?baKJti zQ+i1zTz~c43XtA@%cr8gfg)5&s;LqLq|$|6>iK3|lu~3D4r$(IkE=ZOJ#k2>C!RZ) zGMqOipBSK@)ZlkUtsn{sfOS`HrF0}3_8{|GP}^Av9yZi7WaCI zSqP>QR6qRW#S1q8sTveNsljKoJ4?^b{JVs_q2{{0*E;)s=$a2p%xyM9dhYbwMbh8?zWsgs W`}X%tfBy>r0RR8K_x*MNtO5Wkv!~+# diff --git a/sudoscientist-go-backend/templates/NOTES.txt b/sudoscientist-go-backend/templates/NOTES.txt index 62573e8..e69de29 100644 --- a/sudoscientist-go-backend/templates/NOTES.txt +++ b/sudoscientist-go-backend/templates/NOTES.txt @@ -1,22 +0,0 @@ -1. Get the application URL by running these commands: -{{- if .Values.ingress.enabled }} -{{- range $host := .Values.ingress.hosts }} - {{- range .paths }} - http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }} - {{- end }} -{{- end }} -{{- else if contains "NodePort" .Values.service.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "sudoscientist-go-backend.fullname" . }}) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT -{{- else if contains "LoadBalancer" .Values.service.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "sudoscientist-go-backend.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "sudoscientist-go-backend.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.service.port }} -{{- else if contains "ClusterIP" .Values.service.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "sudoscientist-go-backend.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT -{{- end }} diff --git a/sudoscientist-go-backend/templates/_helpers.tpl b/sudoscientist-go-backend/templates/_helpers.tpl index 084e2b2..6e4f3a0 100644 --- a/sudoscientist-go-backend/templates/_helpers.tpl +++ b/sudoscientist-go-backend/templates/_helpers.tpl @@ -1,62 +1 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "sudoscientist-go-backend.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "sudoscientist-go-backend.fullname" -}} -{{- if .Values.fullnameOverride }} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- $name := default .Chart.Name .Values.nameOverride }} -{{- if contains $name .Release.Name }} -{{- .Release.Name | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} -{{- end }} -{{- end }} -{{- end }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "sudoscientist-go-backend.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "sudoscientist-go-backend.labels" -}} -helm.sh/chart: {{ include "sudoscientist-go-backend.chart" . }} -{{ include "sudoscientist-go-backend.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "sudoscientist-go-backend.selectorLabels" -}} -app.kubernetes.io/name: {{ include "sudoscientist-go-backend.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} - -{{/* -Create the name of the service account to use -*/}} -{{- define "sudoscientist-go-backend.serviceAccountName" -}} -{{- if .Values.serviceAccount.create }} -{{- default (include "sudoscientist-go-backend.fullname" .) .Values.serviceAccount.name }} -{{- else }} -{{- default "default" .Values.serviceAccount.name }} -{{- end }} -{{- end }} +{{ include "common.helpers" . }} diff --git a/sudoscientist-go-backend/templates/deployment.yaml b/sudoscientist-go-backend/templates/deployment.yaml index bf0dc5a..4508e33 100644 --- a/sudoscientist-go-backend/templates/deployment.yaml +++ b/sudoscientist-go-backend/templates/deployment.yaml @@ -1,65 +1 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "sudoscientist-go-backend.fullname" . }} - labels: - {{- include "sudoscientist-go-backend.labels" . | nindent 4 }} -spec: - {{- if not .Values.autoscaling.enabled }} - replicas: {{ .Values.replicaCount }} - {{- end }} - selector: - matchLabels: - {{- include "sudoscientist-go-backend.selectorLabels" . | nindent 6 }} - template: - metadata: - {{- with .Values.podAnnotations }} - annotations: - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "sudoscientist-go-backend.selectorLabels" . | nindent 8 }} - spec: - {{- with .Values.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} - serviceAccountName: {{ include "sudoscientist-go-backend.serviceAccountName" . }} - securityContext: - {{- toYaml .Values.podSecurityContext | nindent 8 }} - containers: - - name: {{ .Chart.Name }} - securityContext: - {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - env: - {{- if .Values.env }} - {{- toYaml .Values.env | nindent 12 }} - {{- end }} - ports: - - name: http - containerPort: {{ .Values.service.port }} - protocol: TCP - #livenessProbe: - # httpGet: - # path: / - # port: http - #readinessProbe: - # httpGet: - # path: / - # port: http - resources: - {{- toYaml .Values.resources | nindent 12 }} - {{- with .Values.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} +{{ include "common.deployment" . }} diff --git a/sudoscientist-go-backend/templates/ingress.yaml b/sudoscientist-go-backend/templates/ingress.yaml deleted file mode 100644 index cde0fcc..0000000 --- a/sudoscientist-go-backend/templates/ingress.yaml +++ /dev/null @@ -1,61 +0,0 @@ -{{- if .Values.ingress.enabled -}} -{{- $fullName := include "sudoscientist-go-backend.fullname" . -}} -{{- $svcPort := .Values.service.port -}} -{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} - {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} - {{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}} - {{- end }} -{{- end }} -{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}} -apiVersion: networking.k8s.io/v1 -{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} -apiVersion: networking.k8s.io/v1beta1 -{{- else -}} -apiVersion: extensions/v1beta1 -{{- end }} -kind: Ingress -metadata: - name: {{ $fullName }} - labels: - {{- include "sudoscientist-go-backend.labels" . | nindent 4 }} - {{- with .Values.ingress.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -spec: - {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }} - ingressClassName: {{ .Values.ingress.className }} - {{- end }} - {{- if .Values.ingress.tls }} - tls: - {{- range .Values.ingress.tls }} - - hosts: - {{- range .hosts }} - - {{ . | quote }} - {{- end }} - secretName: {{ .secretName }} - {{- end }} - {{- end }} - rules: - {{- range .Values.ingress.hosts }} - - host: {{ .host | quote }} - http: - paths: - {{- range .paths }} - - path: {{ .path }} - {{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} - pathType: {{ .pathType }} - {{- end }} - backend: - {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} - service: - name: {{ $fullName }} - port: - number: {{ $svcPort }} - {{- else }} - serviceName: {{ $fullName }} - servicePort: {{ $svcPort }} - {{- end }} - {{- end }} - {{- end }} -{{- end }} diff --git a/sudoscientist-go-backend/templates/service.yaml b/sudoscientist-go-backend/templates/service.yaml index dfcedf2..f024c64 100644 --- a/sudoscientist-go-backend/templates/service.yaml +++ b/sudoscientist-go-backend/templates/service.yaml @@ -1,15 +1 @@ -apiVersion: v1 -kind: Service -metadata: - name: {{ include "sudoscientist-go-backend.fullname" . }} - labels: - {{- include "sudoscientist-go-backend.labels" . | nindent 4 }} -spec: - type: {{ .Values.service.type }} - ports: - - port: {{ .Values.service.port }} - targetPort: http - protocol: TCP - name: http - selector: - {{- include "sudoscientist-go-backend.selectorLabels" . | nindent 4 }} +{{ include "common.service" . }} diff --git a/sudoscientist-go-backend/templates/serviceaccount.yaml b/sudoscientist-go-backend/templates/serviceaccount.yaml deleted file mode 100644 index 0f71f72..0000000 --- a/sudoscientist-go-backend/templates/serviceaccount.yaml +++ /dev/null @@ -1,12 +0,0 @@ -{{- if .Values.serviceAccount.create -}} -apiVersion: v1 -kind: ServiceAccount -metadata: - name: {{ include "sudoscientist-go-backend.serviceAccountName" . }} - labels: - {{- include "sudoscientist-go-backend.labels" . | nindent 4 }} - {{- with .Values.serviceAccount.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} -{{- end }} diff --git a/sudoscientist-go-backend/templates/tests/test-connection.yaml b/sudoscientist-go-backend/templates/tests/test-connection.yaml deleted file mode 100644 index 3f4468e..0000000 --- a/sudoscientist-go-backend/templates/tests/test-connection.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "sudoscientist-go-backend.fullname" . }}-test-connection" - labels: - {{- include "sudoscientist-go-backend.labels" . | nindent 4 }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "sudoscientist-go-backend.fullname" . }}:{{ .Values.service.port }}'] - restartPolicy: Never diff --git a/sudoscientist-go-backend/values.yaml b/sudoscientist-go-backend/values.yaml deleted file mode 100644 index e983743..0000000 --- a/sudoscientist-go-backend/values.yaml +++ /dev/null @@ -1,23 +0,0 @@ -image: - # -- image repository - repository: docker-repo.service.masked.name:5000/sudoscientist-go-backend - # -- image pull policy - pullPolicy: IfNotPresent - # -- image tag - # this example is not automatically updated, so be sure to use the latest image - tag: latest - -service: - type: ClusterIP - port: 80 - -ingress: - enabled: false - -serviceAccount: - create: false - -serviceAccountName: sudoscientist - -autoscaling: - enable: false From 23a95e5f939e5efea231f4423ac0b098ee370c1c Mon Sep 17 00:00:00 2001 From: Amarpreet Minhas Date: Sun, 8 Jan 2023 00:16:53 +0000 Subject: [PATCH 2/2] ghetto common chart --- .../sudoscientist-go-backend}/.helmignore | 0 .../sudoscientist-go-backend}/Chart.lock | 0 .../sudoscientist-go-backend}/Chart.yaml | 0 .../charts/common-0.1.0.tgz | Bin 0 -> 5643 bytes .../templates/NOTES.txt | 0 .../templates/_helpers.tpl | 0 .../templates/deployment.yaml | 0 .../templates/external-secrets.yaml | 1 + .../templates/istio.yaml | 1 + .../templates/service.yaml | 0 library/common/common-0.1.0.tgz | Bin 14269 -> 0 bytes library/common/templates/_deployment.yaml | 21 ++--- .../common/templates/_external-secrets.yaml | 83 ++++++++++++++++++ .../{_helpers.tpl.bak => _helpers.tpl} | 0 library/common/templates/_istio.yaml | 63 +++++++++++++ library/common/templates/_service.yaml | 2 + 16 files changed, 161 insertions(+), 10 deletions(-) rename {sudoscientist-go-backend => apps/sudoscientist-go-backend}/.helmignore (100%) rename {sudoscientist-go-backend => apps/sudoscientist-go-backend}/Chart.lock (100%) rename {sudoscientist-go-backend => apps/sudoscientist-go-backend}/Chart.yaml (100%) create mode 100644 apps/sudoscientist-go-backend/charts/common-0.1.0.tgz rename {sudoscientist-go-backend => apps/sudoscientist-go-backend}/templates/NOTES.txt (100%) rename {sudoscientist-go-backend => apps/sudoscientist-go-backend}/templates/_helpers.tpl (100%) rename {sudoscientist-go-backend => apps/sudoscientist-go-backend}/templates/deployment.yaml (100%) create mode 100644 apps/sudoscientist-go-backend/templates/external-secrets.yaml create mode 100644 apps/sudoscientist-go-backend/templates/istio.yaml rename {sudoscientist-go-backend => apps/sudoscientist-go-backend}/templates/service.yaml (100%) delete mode 100644 library/common/common-0.1.0.tgz create mode 100644 library/common/templates/_external-secrets.yaml rename library/common/templates/{_helpers.tpl.bak => _helpers.tpl} (100%) create mode 100644 library/common/templates/_istio.yaml diff --git a/sudoscientist-go-backend/.helmignore b/apps/sudoscientist-go-backend/.helmignore similarity index 100% rename from sudoscientist-go-backend/.helmignore rename to apps/sudoscientist-go-backend/.helmignore diff --git a/sudoscientist-go-backend/Chart.lock b/apps/sudoscientist-go-backend/Chart.lock similarity index 100% rename from sudoscientist-go-backend/Chart.lock rename to apps/sudoscientist-go-backend/Chart.lock diff --git a/sudoscientist-go-backend/Chart.yaml b/apps/sudoscientist-go-backend/Chart.yaml similarity index 100% rename from sudoscientist-go-backend/Chart.yaml rename to apps/sudoscientist-go-backend/Chart.yaml diff --git a/apps/sudoscientist-go-backend/charts/common-0.1.0.tgz b/apps/sudoscientist-go-backend/charts/common-0.1.0.tgz new file mode 100644 index 0000000000000000000000000000000000000000..215ce2f91046417db4b46e005e0f7a40a4dc7211 GIT binary patch literal 5643 zcmV+m7WC;KiwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PKA0bKAJG=X};*!S&3oJ!ke>=EHJgSIvh=A|=x%Wr74KacgS| zB4Cjs_%I1QGuglW7AeYlSdNoPZf>1A!3SHyqtV>}8jZ#e^3ym@lZ#G(bKYFxnEmqo zlPHSf)#YXNUlhgT|DtrM{32Z{t*cA1rHJo-5heNZ>gpFk{BPjpMVb{H=f8;G+}E*i z{~`%zA)_nquRBTEw5}GpSzxoW>c$oE8^i84G<}u6+T5dttm1@>!CE$)qeUXtmgJLW-Nl$B*Yi_$c^k!f}`s z!dZvS3QqIehclsxFq_e$S zFri$?Qc?)#=cQdKGVD{~<42(hD5JQbP4hYT(LVnq})ep_~@YFuf=n{_*jn z5GFpG5h|Q*rgpQ;KNFh5r%(U+vQd~694CI&@Sro{)2B1xJQb!znq-&cf_xww$zcTKS=Hl>^Q;(JlxsW2<3uu5n7{`j9Y1Yyhh z7jay2asHU*3!IZZ_RBtQemhi3HF;=4$~o~rJ^O#Am-e5~jHRoXCg05;e8c`LSFL0J zul25_{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nP0FVBDV_`i7kc?|jg+mAjE_ldvz0<&`5PrTLI{oKIbE3kT}dHZeG z#zlWPeiL>0)a!V6`d79X_4;oHl*QpBNpt%B`*?HxE3M<-|9L0=^#6ZI`c-(qoYOoh z1fB|;86YeInh4`r$Viw>gbe!;p3tJ%_*HO%un>w_R;?|e2q6H4s(F_U27n|yN lI&C!Pg`X07@h@i#ex{%4XZp8F{}liL|Nl?N6zTv_0069r9jpKV literal 0 HcmV?d00001 diff --git a/sudoscientist-go-backend/templates/NOTES.txt b/apps/sudoscientist-go-backend/templates/NOTES.txt similarity index 100% rename from sudoscientist-go-backend/templates/NOTES.txt rename to apps/sudoscientist-go-backend/templates/NOTES.txt diff --git a/sudoscientist-go-backend/templates/_helpers.tpl b/apps/sudoscientist-go-backend/templates/_helpers.tpl similarity index 100% rename from sudoscientist-go-backend/templates/_helpers.tpl rename to apps/sudoscientist-go-backend/templates/_helpers.tpl diff --git a/sudoscientist-go-backend/templates/deployment.yaml b/apps/sudoscientist-go-backend/templates/deployment.yaml similarity index 100% rename from sudoscientist-go-backend/templates/deployment.yaml rename to apps/sudoscientist-go-backend/templates/deployment.yaml diff --git a/apps/sudoscientist-go-backend/templates/external-secrets.yaml b/apps/sudoscientist-go-backend/templates/external-secrets.yaml new file mode 100644 index 0000000..c0cfb91 --- /dev/null +++ b/apps/sudoscientist-go-backend/templates/external-secrets.yaml @@ -0,0 +1 @@ +{{ include "common.external-secrets" . }} diff --git a/apps/sudoscientist-go-backend/templates/istio.yaml b/apps/sudoscientist-go-backend/templates/istio.yaml new file mode 100644 index 0000000..7e551d3 --- /dev/null +++ b/apps/sudoscientist-go-backend/templates/istio.yaml @@ -0,0 +1 @@ +{{ include "common.istio" . }} diff --git a/sudoscientist-go-backend/templates/service.yaml b/apps/sudoscientist-go-backend/templates/service.yaml similarity index 100% rename from sudoscientist-go-backend/templates/service.yaml rename to apps/sudoscientist-go-backend/templates/service.yaml diff --git a/library/common/common-0.1.0.tgz b/library/common/common-0.1.0.tgz deleted file mode 100644 index 1591017194e949354e19c1eeab7b8348ce62577f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 14269 zcmV;uH$uoCiwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PMPTSkznBHx5dPpeQK@Lr8arbW5j*)Bpnv3^T*b(4iusfOJTA zNlAyaG)Sj(cX$6T^@PWB?)N;```pj{T<`Te>yMdX?X~t=JJx4^_VELZM)&`PXJ7=v%P^p{7VdTxVw%0N4y*0)wJ}U?>tmB?+-bqCg0F zRVo0hHV|S9Lb4)32s^L|i1jNr09;*h0RWH#9ELyvR8^!5mBp2$g=y%mY>h!CCnQvwrnPKtU)Fk`)YN z`|2p{>n%P1i z(C^5K`xVE&+WvBmKw+rgtbw*D7}5j?0YlAMK~SJE1Z4XC^gw{V!4vWiegC4AgxNw- z-_3qN7XSbWf`Cj=FvQnb0Dv_RWn!TSGzLMC-xUDBUmqiXm;S%<{q;2Yd;eeS?U%%U zn7*&_bqw}kl*Mm-z+tB1P$&%b4V;lbr0~1)SKsg6DA-e=H3Yy4Z~;KUP*V^T1>pbP z?GJMV0Q|Zde;FEV4KxR-+Cm^2AQJ=#^+WKVTmBmvd|jz;Y(d<_*bcbMsC0wGv=RFbaln1h~2i{;3%SGzYkREp?zR1odm;;&Avcwf&Xu{2b-$ z(yGEBU=znbEXDW!;J-EgF+UL0?$4tIoBieug4+Gj;VJM!YupI~rLLyZWFk{dk zv-lca7WC6D006#{Iza&2&)RS4{FE>P1T+Qz5B83P*&<9p$iLmEzghl^)%g>8Kw+jJ zjbA|cce5Y0|1H$`Q#_!V85jyi{je#2)%<(opkNRX;%7AeLHU0f?LSYA|IGg^;J|LM{@&?#n_rwjCJ+&>-_zvJ64&w=5#ziGY) z5Vr#%faahdg8a*&{MR!236%eKgi0W57{c-2IY{eoJ^pvc`CrKEuTO;kk;CE7`2Q>Y z`S+axfA{`}o8#yAKRl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JbdtKWtFqa<jxNm~^4Q2vs9DKrP&}Us=332gyb)mB zv!y{F7u#*SAy6h68bC;=9%xsqW^=rt+k>O><>-ayYq~YH&(A6|_%G)f)6m;Mg@H@>b=W* zS!17J!L*`}+b>rjx9l}!cV#zwK4az$jk`AkR zFgZ8?VeQAu7lAviXgIwM;|a5o9~cTJbi|*zVyeHb8el;8+S0`_XuGlfe6c61##(WdGw`%MY=maxnHB2iSp8V2QFQqia&d$N{;nkv48L^KbX> z_-xzQyDC?UG`>GeI*^=dzN+E<^6F~!qCKYvV}vnj-&@huXTj2yw|m$$^p=}VEP>_E zeU&|ImXmX+4Og`#lC>QJicZRTrrRG8t&5zQZxNcWs@&O&u&ikdc`^yF(KzP6pIhCu zCAKzx?jXd-*-D3ITbSvd37#n+m>p)hnQSKH9!Dh*Jr)W35aPxr4+=HeZSs!*yR~s5sN{aum+8Prfd#fB3dl z3G#eo`IRXjC8$CA?K7Wkl6%sXNuP}GSNUaOArspjhoXsMO$EU!O4b>U{GuslQuk zAL-s3e|yxR-eKCmhoA2}anW>NyzH(~xTHfvySyxeuW6#G f{%`-I|3C7N{3HL!PxAi-00960p$d7x09XJ36$3w< diff --git a/library/common/templates/_deployment.yaml b/library/common/templates/_deployment.yaml index 1910db9..05c453b 100644 --- a/library/common/templates/_deployment.yaml +++ b/library/common/templates/_deployment.yaml @@ -9,14 +9,15 @@ spec: {{- end }} selector: matchLabels: - app.kubernetes.io/name: {{ .Values.common.fullname }} - app.kubernetes.io/instance: {{ .Values.common.fullname }} + {{- include "common.selectorLabels" . | nindent 6 }} template: metadata: {{- with .Values.podAnnotations }} annotations: {{- toYaml . | nindent 8 }} {{- end }} + labels: + {{- include "common.selectorLabels" . | nindent 8 }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: @@ -39,14 +40,14 @@ spec: - name: http containerPort: {{ .Values.service.port }} protocol: TCP - livenessProbe: - httpGet: - path: / - port: http - readinessProbe: - httpGet: - path: / - port: http +# livenessProbe: +# httpGet: +# path: / +# port: http +# readinessProbe: +# httpGet: +# path: / +# port: http resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} diff --git a/library/common/templates/_external-secrets.yaml b/library/common/templates/_external-secrets.yaml new file mode 100644 index 0000000..db562b8 --- /dev/null +++ b/library/common/templates/_external-secrets.yaml @@ -0,0 +1,83 @@ +{{ define "common.external-secrets" }} +--- +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ .Values.common.serviceAccountName }} +automountServiceAccountToken: false +... +--- +apiVersion: v1 +kind: Secret +type: kubernetes.io/service-account-token +metadata: + name: serviceaccounttoken + annotations: + kubernetes.io/service-account.name: "{{ .Values.common.serviceAccountName }}" +... +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: {{ .Values.common.serviceAccountName }}-tokenreview-binding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: system:auth-delegator +subjects: +- kind: ServiceAccount + name: {{ .Values.common.serviceAccountName }} + namespace: {{ .Values.common.namespace }} +... +--- +apiVersion: redhatcop.redhat.io/v1alpha1 +kind: Policy +metadata: + name: {{ .Values.common.serviceAccountName }} + namespace: {{ .Values.common.namespace }} +spec: + authentication: + path: k8s-teapot + role: {{ .Values.common.serviceAccountName }} + policy: |- +{{ .Values.common.vaultPolicy | indent 4 }} +... +--- +apiVersion: external-secrets.io/v1beta1 +kind: SecretStore +metadata: + name: {{ .Values.common.serviceAccountName }} +spec: + provider: + vault: + server: "https://vault.service.masked.name:8200" + path: "kv" + version: "v2" + caBundle: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUROVENDQWgyZ0F3SUJBZ0lVWXA4eG81dDJsSkZQM1NpRDFmSmlyZ0dVUUowd0RRWUpLb1pJaHZjTkFRRUwKQlFBd0ZqRVVNQklHQTFVRUF4TUxiV0Z6YTJWa0xtNWhiV1V3SGhjTk1qQXdPREk1TVRreU16RXlXaGNOTXpBdwpPREkzTVRreU16U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QVRFLS0tLS0K + auth: + kubernetes: + mountPath: "k8s-teapot" + role: "{{ .Values.common.serviceAccountName }}" + secretRef: + name: "serviceaccounttoken" +... +--- +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: {{ .Values.common.serviceAccountName }} +spec: + secretStoreRef: + name: {{ .Values.common.serviceAccountName }} + kind: SecretStore + data: + {{- range $v := .Values.common.secrets }} + {{- with $v }} + - secretKey: {{ .secretKey }} + remoteRef: + key: {{ .key }} + property: {{ .property }} + {{- end }} + {{- end }} +... +{{- end }} diff --git a/library/common/templates/_helpers.tpl.bak b/library/common/templates/_helpers.tpl similarity index 100% rename from library/common/templates/_helpers.tpl.bak rename to library/common/templates/_helpers.tpl diff --git a/library/common/templates/_istio.yaml b/library/common/templates/_istio.yaml new file mode 100644 index 0000000..0648d56 --- /dev/null +++ b/library/common/templates/_istio.yaml @@ -0,0 +1,63 @@ +{{- define "common.istio" }} +--- +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: {{ .Values.common.fullname }}-cert + namespace: istio-system +spec: + secretName: {{ .Values.common.fullname }}-cert + commonName: {{ first .Values.common.domains }} + dnsNames: + {{- range $d := .Values.common.domains }} + - {{ $d }} + {{- end }} + issuerRef: + name: {{ .Values.common.domainIssuer }} + kind: ClusterIssuer + group: cert-manager.io +... +--- +apiVersion: networking.istio.io/v1beta1 +kind: Gateway +metadata: + name: {{ .Values.common.fullname }}-gateway +spec: + selector: + istio: ingressgateway + servers: + - port: + number: 443 + name: https + protocol: HTTPS + tls: + mode: SIMPLE + credentialName: {{ .Values.common.fullname }}-cert + hosts: + {{- range $d := .Values.common.domains }} + - {{ $d }} + {{- end }} +... +--- +apiVersion: networking.istio.io/v1beta1 +kind: VirtualService +metadata: + name: {{ .Values.common.fullname }}-gateway +spec: + hosts: + {{- range $d := .Values.common.domains }} + - {{ $d }} + {{- end }} + gateways: + - {{ .Values.common.fullname }}-gateway + http: + - match: + - uri: + prefix: / + route: + - destination: + port: + number: 80 + host: {{ .Values.common.fullname }} +... +{{- end }} diff --git a/library/common/templates/_service.yaml b/library/common/templates/_service.yaml index e52a750..6c565a5 100644 --- a/library/common/templates/_service.yaml +++ b/library/common/templates/_service.yaml @@ -4,6 +4,8 @@ kind: Service metadata: name: {{ .Values.common.fullname }} spec: + selector: + {{- include "common.selectorLabels" . | nindent 6 }} type: {{ .Values.service.type }} ports: - port: {{ .Values.service.port }}