This commit is contained in:
jooho
2021-12-26 17:08:41 +09:00
parent d6e543eb24
commit 628f2ace5a
97 changed files with 3958 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: zipkin-deployment
labels:
env: production
tier: backend
app: zipkin
name: zipkin-deployment
spec:
replicas: 1
selector:
matchLabels:
env: production
tier: backend
app: zipkin
name: zipkin-pod
template:
metadata:
labels:
env: production
tier: backend
app: zipkin
name: zipkin-pod
spec:
containers:
- name: zipkin
image: openzipkin/zipkin
ports:
- containerPort: 9411
name: http-9411
env:
- name: TZ
valueFrom:
configMapKeyRef:
name: common-configmap
key: TZ
startupProbe:
httpGet:
path: /zipkin/
port: 9411
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 1
failureThreshold: 36
readinessProbe:
httpGet:
path: /zipkin/
port: 9411
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
failureThreshold: 3

View File

@@ -0,0 +1,18 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: zipkin-ingress
labels:
env: production
tier: backend
app: zipkin
name: zipkin-ingress
spec:
rules:
- host: <Zipkin 도메인> # TODO
http:
paths:
- path: /
backend:
serviceName: zipkin
servicePort: 9411

View File

@@ -0,0 +1,20 @@
apiVersion: v1
kind: Service
metadata:
name: zipkin
labels:
env: production
tier: backend
app: zipkin
name: zipkin-service
spec:
selector:
env: production
tier: backend
app: zipkin
name: zipkin-pod
ports:
- name: http-9411
protocol: TCP
port: 9411
targetPort: 9411