AKS conversion
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: repo-client
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: repo-client
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 25%
|
||||
maxUnavailable: 25%
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: repo-client
|
||||
spec:
|
||||
containers:
|
||||
- name: repo-client
|
||||
image: repo-client
|
||||
resources:
|
||||
requests:
|
||||
cpu: "50m"
|
||||
memory: "128Mi"
|
||||
limits:
|
||||
memory: "256Mi"
|
||||
ports:
|
||||
- containerPort: 80
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
@@ -0,0 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: repo-client
|
||||
spec:
|
||||
selector:
|
||||
app: repo-client
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
@@ -0,0 +1,8 @@
|
||||
resources:
|
||||
- Deployment.yaml
|
||||
- Service.yaml
|
||||
- virtual-service.yaml
|
||||
|
||||
images:
|
||||
- name: repo-client
|
||||
newName: landmarkcu/lcu.webapps.collections.repoclient-repoclient
|
||||
@@ -0,0 +1,18 @@
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: repo-client
|
||||
spec:
|
||||
hosts: []
|
||||
gateways:
|
||||
- istio-system/ingress-gateway
|
||||
http:
|
||||
- name: repo-client
|
||||
match:
|
||||
- uri:
|
||||
prefix: /
|
||||
route:
|
||||
- destination:
|
||||
host: repo-client
|
||||
port:
|
||||
number: 80
|
||||
@@ -0,0 +1,2 @@
|
||||
resources:
|
||||
- normal
|
||||
@@ -0,0 +1,7 @@
|
||||
resources:
|
||||
- ../../../base
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: VirtualService
|
||||
path: set_virtual_service.yaml
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: repo-client
|
||||
spec:
|
||||
hosts:
|
||||
- repomanage.lcu-internal.com
|
||||
@@ -0,0 +1,2 @@
|
||||
resources:
|
||||
- normal
|
||||
@@ -0,0 +1,7 @@
|
||||
resources:
|
||||
- ../../../base
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: VirtualService
|
||||
path: set_virtual_service.yaml
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: repo-client
|
||||
spec:
|
||||
hosts:
|
||||
- qa-repomanage.lcu-internal.com
|
||||
@@ -0,0 +1,2 @@
|
||||
resources:
|
||||
- normal
|
||||
@@ -0,0 +1,7 @@
|
||||
resources:
|
||||
- ../../../base
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: VirtualService
|
||||
path: set_virtual_service.yaml
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
apiVersion: networking.istio.io/v1beta1
|
||||
kind: VirtualService
|
||||
metadata:
|
||||
name: repo-client
|
||||
spec:
|
||||
hosts:
|
||||
- uat-repomanage.lcu-internal.com
|
||||
Reference in New Issue
Block a user