-
Notifications
You must be signed in to change notification settings - Fork 56
/
k8s-app.yaml
36 lines (36 loc) · 912 Bytes
/
k8s-app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
apiVersion: apps/v1
kind: Deployment
metadata:
name: spring-reactive-jwt-sample-server
spec:
replicas: 1
selector:
matchLabels:
app: spring-reactive-jwt-sample-server
template:
metadata:
labels:
app: spring-reactive-jwt-sample-server
spec:
containers:
- name: spring-reactive-jwt-sample-server
image: hantsy/spring-reactive-jwt-sample-server:latest
# image: $DOCKER_USERNAME/spring-reactive-jwt-sample-server:$SEMAPHORE_WORKFLOW_ID
ports:
- containerPort: 8080
env:
- name: SPRING_DATA_MONGODB_URI
value: mongodb://mongo:27017/blog
imagePullPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: spring-reactive-jwt-sample-server
spec:
selector:
app: spring-reactive-jwt-sample-server
ports:
- port: 80
targetPort: 8080
type: LoadBalancer