first commit

This commit is contained in:
arfat qureshi
2025-10-29 11:44:13 +05:30
parent 1fcff40400
commit 6ce776f218
463 changed files with 95252 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: extranetui
spec:
replicas: 2
selector:
matchLabels:
app: extranetui
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
app: extranetui
spec:
containers:
- name: extranetui
image: aosdevacr.azurecr.io/extranetui
imagePullPolicy: Always
readinessProbe:
httpGet:
path: /healthcheck
port: 80
initialDelaySeconds: 30
periodSeconds: 1
livenessProbe:
httpGet:
path: /healthcheck
port: 80
initialDelaySeconds: 30
periodSeconds: 1
resources:
limits:
memory: "768M"
cpu: "500m"
requests:
memory: "512M"
cpu: "300m"
ports:
- name: http
containerPort: 80
volumeMounts:
- name: config-volume
mountPath: "/app/appsettings.json"
subPath: "appsettings.json"
volumes:
- name: config-volume
configMap:
name: app-config
restartPolicy: Always
imagePullSecrets:
- name: acr-pull

12
kustomize/base/hpa.yaml Normal file
View File

@@ -0,0 +1,12 @@
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: extranetui-hpa
spec:
maxReplicas: 10
minReplicas: 2
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: extranetui
targetCPUUtilizationPercentage: 50

View File

@@ -0,0 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
generatorOptions:
annotations:
generated: "true"
disableNameSuffixHash: true
resources:
- service.yaml
- deployment.yaml
- hpa.yaml

View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: extranetui-service
labels:
app: extranetui-service
spec:
type: NodePort
selector:
app: extranetui
ports:
- name: extranetui-service-port
port: 80
targetPort: http
sessionAffinity: ClientIP

View File

@@ -0,0 +1,82 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: extranetui-service
name: extranetui-service
spec:
ports:
- name: extranetui-service-port
port: 80
targetPort: http
selector:
app: extranetui
sessionAffinity: ClientIP
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: extranetui
spec:
replicas: 2
selector:
matchLabels:
app: extranetui
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
app: extranetui
spec:
containers:
- image: aosdevacr.azurecr.io/extranetui
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /healthcheck
port: 80
initialDelaySeconds: 30
periodSeconds: 1
name: extranetui
ports:
- containerPort: 80
name: http
readinessProbe:
httpGet:
path: /healthcheck
port: 80
initialDelaySeconds: 30
periodSeconds: 1
resources:
limits:
cpu: 500m
memory: 768M
requests:
cpu: 300m
memory: 512M
volumeMounts:
- mountPath: /app/appsettings.json
name: config-volume
subPath: appsettings.json
imagePullSecrets:
- name: acr-pull
restartPolicy: Always
volumes:
- configMap:
name: app-config
name: config-volume
---
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: extranetui-hpa
spec:
maxReplicas: 5
minReplicas: 1
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: extranetui
targetCPUUtilizationPercentage: 50

View File

@@ -0,0 +1,82 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: extranetui-service
name: extranetui-service
spec:
ports:
- name: extranetui-service-port
port: 80
targetPort: http
selector:
app: extranetui
sessionAffinity: ClientIP
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: extranetui
spec:
replicas: 2
selector:
matchLabels:
app: extranetui
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
app: extranetui
spec:
containers:
- image: aosprodacr.azurecr.io/extranetui
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /healthcheck
port: 80
initialDelaySeconds: 30
periodSeconds: 1
name: extranetui
ports:
- containerPort: 80
name: http
readinessProbe:
httpGet:
path: /healthcheck
port: 80
initialDelaySeconds: 30
periodSeconds: 1
resources:
limits:
cpu: 500m
memory: 768M
requests:
cpu: 300m
memory: 512M
volumeMounts:
- mountPath: /app/appsettings.json
name: config-volume
subPath: appsettings.json
imagePullSecrets:
- name: acr-pull
restartPolicy: Always
volumes:
- configMap:
name: app-config
name: config-volume
---
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: extranetui-hpa
spec:
maxReplicas: 5
minReplicas: 1
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: extranetui
targetCPUUtilizationPercentage: 50

View File

@@ -0,0 +1,82 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: extranetui-service
name: extranetui-service
spec:
ports:
- name: extranetui-service-port
port: 80
targetPort: http
selector:
app: extranetui
sessionAffinity: ClientIP
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: extranetui
spec:
replicas: 2
selector:
matchLabels:
app: extranetui
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
app: extranetui
spec:
containers:
- image: aosprodacr.azurecr.io/extranetui
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /healthcheck
port: 80
initialDelaySeconds: 30
periodSeconds: 1
name: extranetui
ports:
- containerPort: 80
name: http
readinessProbe:
httpGet:
path: /healthcheck
port: 80
initialDelaySeconds: 30
periodSeconds: 1
resources:
limits:
cpu: 500m
memory: 768M
requests:
cpu: 300m
memory: 512M
volumeMounts:
- mountPath: /app/appsettings.json
name: config-volume
subPath: appsettings.json
imagePullSecrets:
- name: acr-pull
restartPolicy: Always
volumes:
- configMap:
name: app-config
name: config-volume
---
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: extranetui-hpa
spec:
maxReplicas: 5
minReplicas: 2
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: extranetui
targetCPUUtilizationPercentage: 50

View File

@@ -0,0 +1,82 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: extranetui-service
name: extranetui-service
spec:
ports:
- name: extranetui-service-port
port: 80
targetPort: http
selector:
app: extranetui
sessionAffinity: ClientIP
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: extranetui
spec:
replicas: 2
selector:
matchLabels:
app: extranetui
template:
metadata:
annotations:
linkerd.io/inject: enabled
labels:
app: extranetui
spec:
containers:
- image: aosdevacr.azurecr.io/extranetui
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /healthcheck
port: 80
initialDelaySeconds: 30
periodSeconds: 1
name: extranetui
ports:
- containerPort: 80
name: http
readinessProbe:
httpGet:
path: /healthcheck
port: 80
initialDelaySeconds: 30
periodSeconds: 1
resources:
limits:
cpu: 500m
memory: 768M
requests:
cpu: 300m
memory: 512M
volumeMounts:
- mountPath: /app/appsettings.json
name: config-volume
subPath: appsettings.json
imagePullSecrets:
- name: acr-pull
restartPolicy: Always
volumes:
- configMap:
name: app-config
name: config-volume
---
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: extranetui-hpa
spec:
maxReplicas: 5
minReplicas: 1
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: extranetui
targetCPUUtilizationPercentage: 50

View File

@@ -0,0 +1,12 @@
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: extranetui-hpa
spec:
maxReplicas: 5
minReplicas: 1
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: extranetui
targetCPUUtilizationPercentage: 50

View File

@@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
generatorOptions:
annotations:
generated: "true"
disableNameSuffixHash: true
resources:
- ../../base
patches:
- path: hpa.yaml