first commit

This commit is contained in:
jyjang
2020-04-19 15:37:29 +09:00
parent 11a9f3b645
commit 96631ee507
66 changed files with 2310 additions and 0 deletions

37
store/kubernetes/deployment.yml Executable file
View File

@@ -0,0 +1,37 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: store
labels:
app: store
spec:
replicas: 1
selector:
matchLabels:
app: store
template:
metadata:
labels:
app: store
spec:
containers:
- name: store
image: username/store:latest
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: '/actuator/health'
port: 8080
initialDelaySeconds: 10
timeoutSeconds: 2
periodSeconds: 5
failureThreshold: 10
livenessProbe:
httpGet:
path: '/actuator/health'
port: 8080
initialDelaySeconds: 120
timeoutSeconds: 2
periodSeconds: 5
failureThreshold: 5

12
store/kubernetes/service.yaml Executable file
View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: store
labels:
app: store
spec:
ports:
- port: 8080
targetPort: 8080
selector:
app: store