k8s
This commit is contained in:
53
k8s/environments/zipkin/deployment.yaml
Normal file
53
k8s/environments/zipkin/deployment.yaml
Normal 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
|
||||
18
k8s/environments/zipkin/ingress/ingress.yaml
Normal file
18
k8s/environments/zipkin/ingress/ingress.yaml
Normal 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
|
||||
20
k8s/environments/zipkin/service.yaml
Normal file
20
k8s/environments/zipkin/service.yaml
Normal 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
|
||||
Reference in New Issue
Block a user