Skip to content

Commit

Permalink
Added configmap
Browse files Browse the repository at this point in the history
  • Loading branch information
asharmah4h committed Feb 15, 2024
1 parent 6f28b64 commit f66b84d
Show file tree
Hide file tree
Showing 9 changed files with 203 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/DeployToAKS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
with:
renderEngine: "helm"
helmChart: ${{ env.CHART_PATH }}
#overrideFiles: ${{ env.CHART_OVERRIDE_PATH }}
overrideFiles: "./helm-charts/dev/ic-ui-vaulues.yaml"
overrides: |
replicas:2
helm-version: "latest"
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
with:
renderEngine: "helm"
helmChart: ${{ env.CHART_PATH }}
#overrideFiles: ${{ env.CHART_OVERRIDE_PATH }}
overrideFiles: ./helm-charts/prod/ic-ui-vaulues.yaml
overrides: |
replicas:2
helm-version: "latest"
Expand Down
97 changes: 97 additions & 0 deletions helm-charts/dev/ic-ui-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# Default values for infini-connect-ui.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1

namespace: ic-core-dev

image:
repository: inficonnectacr.azurecr.io/infini-connect-ui
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "dev"

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""

podAnnotations: {}

podSecurityContext: {}
# fsGroup: 2000

securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000

service:
type: ClusterIP
ports:
http:
port: 80
targetPort: http
protocol: TCP
https:
port: 443
targetPort: https
protocol: TCP

configMapValues:
VITE_API_BASE_URL: "https://dvt-infini-connect-old-dev.azurewebsites.net"
VITE_GOOGLE_CLIENT_ID: "779787791084-sf0tjf22s5cl3odf9sjg6rch0if9c0qq.apps.googleusercontent.com"


ingress:
enabled: true
className: ""
port: 443
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi

autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

nodeSelector: {}

tolerations: []

affinity: {}
2 changes: 1 addition & 1 deletion helm-charts/infini-connect-ui/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "infini-connect-ui.fullname" . }}
namespace : ic-core-dev
namespace: {{ .Values.namespace }}
labels:
{{- include "infini-connect-ui.labels" . | nindent 4 }}
spec:
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/infini-connect-ui/templates/env-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: env-configmap
namespace : ic-core-dev
namespace: {{ .Values.namespace }}
data:
{{- range $key, $value := .Values.configMapValues }}
{{ $key }}: {{ $value | quote }}
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/infini-connect-ui/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}
namespace : ic-core-dev
namespace: {{ .Values.namespace }}
labels:
{{- include "infini-connect-ui.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/infini-connect-ui/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: {{ include "infini-connect-ui.fullname" . }}
namespace : ic-core-dev
namespace: {{ .Values.namespace }}
labels:
{{- include "infini-connect-ui.labels" . | nindent 4 }}
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "infini-connect-ui.serviceAccountName" . }}
namespace : ic-core-dev
namespace: {{ .Values.namespace }}
labels:
{{- include "infini-connect-ui.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
Expand Down
2 changes: 2 additions & 0 deletions helm-charts/infini-connect-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

replicaCount: 1

namespace: defualt

image:
repository: inficonnectacr.azurecr.io/infini-connect-ui
pullPolicy: IfNotPresent
Expand Down
97 changes: 97 additions & 0 deletions helm-charts/prod/ic-ui-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# Default values for infini-connect-ui.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1

namespace: ic-core-acc

image:
repository: inficonnectacr.azurecr.io/infini-connect-ui
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "latest"

imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""

podAnnotations: {}

podSecurityContext: {}
# fsGroup: 2000

securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000

service:
type: ClusterIP
ports:
http:
port: 80
targetPort: http
protocol: TCP
https:
port: 443
targetPort: https
protocol: TCP

configMapValues:
VITE_API_BASE_URL: "https://dvt-infini-connect-old-dev.azurewebsites.net"
VITE_GOOGLE_CLIENT_ID: "779787791084-sf0tjf22s5cl3odf9sjg6rch0if9c0qq.apps.googleusercontent.com"


ingress:
enabled: true
className: ""
port: 443
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi

autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

nodeSelector: {}

tolerations: []

affinity: {}

0 comments on commit f66b84d

Please sign in to comment.