123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- # make sure to have kind installed. Use one script options under infrastructure folder
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: backend-service
- spec:
- selector:
- matchLabels:
- app: backend-service
- template:
- metadata:
- labels:
- app: backend-service
- spec:
- containers:
- - name: backend-service
- image: localhost:5000/backend-service:latest
- imagePullPolicy: Always
- env:
- - name: spring.profiles.active
- value: kubernetes
- resources:
- requests:
- memory: "256Mi"
- cpu: "100m"
- limits:
- memory: "512Mi"
- cpu: "500m"
- livenessProbe:
- httpGet:
- path: /actuator/health/liveness
- port: 8080
- scheme: HTTP
- successThreshold: 1
- readinessProbe:
- httpGet:
- path: /actuator/health/readiness
- port: 8080
- scheme: HTTP
- ---
- kind: Service
- apiVersion: v1
- metadata:
- name: backend-service
- spec:
- selector:
- app: backend-service
- ports:
- # Default port used by the image
- - port: 8080
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: frontend-service
- spec:
- selector:
- matchLabels:
- app: frontend-service
- template:
- metadata:
- labels:
- app: frontend-service
- spec:
- containers:
- - name: frontend-service
- image: localhost:5000/frontend-service:latest
- imagePullPolicy: Always
- env:
- - name: spring.profiles.active
- value: kubernetes
- resources:
- requests:
- memory: "256Mi"
- cpu: "100m"
- limits:
- memory: "512Mi"
- cpu: "500m"
- livenessProbe:
- httpGet:
- path: /actuator/health/liveness
- port: 8080
- scheme: HTTP
- successThreshold: 1
- readinessProbe:
- httpGet:
- path: /actuator/health/readiness
- port: 8080
- scheme: HTTP
- ---
- kind: Service
- apiVersion: v1
- metadata:
- name: frontend-service
- spec:
- selector:
- app: frontend-service
- ports:
- # Default port used by the image
- - port: 8080
|