mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-15 13:51:09 +08:00
49 lines
960 B
YAML
49 lines
960 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: identity-deployment
|
|
labels:
|
|
app: identity
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: identity
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: identity
|
|
spec:
|
|
containers:
|
|
- image: meysamh66/booking-microservices-identity:v1.6.3
|
|
name: identity
|
|
ports:
|
|
- containerPort: 80
|
|
env:
|
|
- name: "ASPNETCORE_ENVIRONMENT"
|
|
value: "docker"
|
|
- name: ASPNETCORE_URLS
|
|
value: http://+:80
|
|
volumeMounts:
|
|
- name: appsettings-volume
|
|
mountPath: /app/Settings
|
|
volumes:
|
|
- name: appsettings-volume
|
|
configMap:
|
|
name: appsettings
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: identity-service
|
|
spec:
|
|
selector:
|
|
app: identity
|
|
ports:
|
|
- name: http
|
|
protocol: TCP
|
|
port: 80
|
|
targetPort: 80
|
|
nodePort: 30443
|
|
type: NodePort
|