Update k8s-deployment.yaml
All checks were successful
CI/CD Pipeline / pipeline-execution (push) Successful in 15s
All checks were successful
CI/CD Pipeline / pipeline-execution (push) Successful in 15s
This commit is contained in:
parent
602ed64712
commit
e1cc2a43c4
@ -4,15 +4,58 @@ metadata:
|
||||
name: microservice-sample
|
||||
namespace: default
|
||||
spec:
|
||||
replicas: 1
|
||||
replicas: 2
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 1
|
||||
maxUnavailable: 0
|
||||
selector:
|
||||
matchLabels: { app: microservice-sample }
|
||||
matchLabels:
|
||||
app: microservice-sample
|
||||
template:
|
||||
metadata:
|
||||
labels: { app: microservice-sample }
|
||||
labels:
|
||||
app: microservice-sample
|
||||
spec:
|
||||
nodeSelector: { app-node: "true" }
|
||||
nodeSelector:
|
||||
app-node: "true"
|
||||
containers:
|
||||
- name: app-container
|
||||
image: registry-service.container-registry.svc.cluster.local:5000/apps/microservice-sample:latest
|
||||
ports: [{ containerPort: 80 }]
|
||||
ports:
|
||||
- containerPort: 80
|
||||
resources:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: microservice-sample-service
|
||||
namespace: default
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: microservice-sample
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: microservice-web-route
|
||||
namespace: default
|
||||
spec:
|
||||
entryPoints: [websecure]
|
||||
routes:
|
||||
- match: Host(`web.loryapp.ai`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: microservice-sample-service
|
||||
port: 80
|
||||
tls: {}
|
||||
Loading…
Reference in New Issue
Block a user