first commit
This commit is contained in:
53
kustomize/base/deployment.yaml
Normal file
53
kustomize/base/deployment.yaml
Normal 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
12
kustomize/base/hpa.yaml
Normal 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
|
||||
10
kustomize/base/kustomization.yaml
Normal file
10
kustomize/base/kustomization.yaml
Normal 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
|
||||
15
kustomize/base/service.yaml
Normal file
15
kustomize/base/service.yaml
Normal 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
|
||||
82
kustomize/manifests/dev.yaml
Normal file
82
kustomize/manifests/dev.yaml
Normal 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
|
||||
82
kustomize/manifests/preprod/preprod.yaml
Normal file
82
kustomize/manifests/preprod/preprod.yaml
Normal 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
|
||||
82
kustomize/manifests/prod/prod.yaml
Normal file
82
kustomize/manifests/prod/prod.yaml
Normal 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
|
||||
82
kustomize/manifests/uat/uat.yaml
Normal file
82
kustomize/manifests/uat/uat.yaml
Normal 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
|
||||
12
kustomize/overlays/dev/hpa.yaml
Normal file
12
kustomize/overlays/dev/hpa.yaml
Normal 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
|
||||
11
kustomize/overlays/dev/kustomization.yaml
Normal file
11
kustomize/overlays/dev/kustomization.yaml
Normal 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
|
||||
|
||||
0
kustomize/overlays/pre-prod/kustomization.yaml
Normal file
0
kustomize/overlays/pre-prod/kustomization.yaml
Normal file
0
kustomize/overlays/prod/kustomization.yaml
Normal file
0
kustomize/overlays/prod/kustomization.yaml
Normal file
0
kustomize/overlays/uat/kustomization.yaml
Normal file
0
kustomize/overlays/uat/kustomization.yaml
Normal file
Reference in New Issue
Block a user