From 1dbd43ff185136665c4f9832ca581e31710b74d3 Mon Sep 17 00:00:00 2001 From: Yuya Yoshida Date: Fri, 11 Oct 2019 10:15:57 +0900 Subject: [PATCH] Fix all-in-one start failed at k8s 1.16 Signed-off-by: Yuya Yoshida --- all-in-one/jaeger-all-in-one-template.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/all-in-one/jaeger-all-in-one-template.yml b/all-in-one/jaeger-all-in-one-template.yml index d1f2ef0..8cac417 100644 --- a/all-in-one/jaeger-all-in-one-template.yml +++ b/all-in-one/jaeger-all-in-one-template.yml @@ -15,7 +15,7 @@ apiVersion: v1 kind: List items: -- apiVersion: extensions/v1beta1 +- apiVersion: apps/v1 kind: Deployment metadata: name: jaeger @@ -24,6 +24,9 @@ items: app.kubernetes.io/name: jaeger app.kubernetes.io/component: all-in-one spec: + selector: + matchLabels: + app: jaeger replicas: 1 strategy: type: Recreate @@ -70,6 +73,9 @@ items: app.kubernetes.io/name: jaeger app.kubernetes.io/component: query spec: + selector: + matchLabels: + app: jaeger-query ports: - name: query-http port: 80 @@ -88,6 +94,9 @@ items: app.kubernetes.io/name: jaeger app.kubernetes.io/component: collector spec: + selector: + matchLabels: + app: jaeger-collector ports: - name: jaeger-collector-tchannel port: 14267 @@ -114,6 +123,9 @@ items: app.kubernetes.io/name: jaeger app.kubernetes.io/component: agent spec: + selector: + matchLabels: + app: jaeger-agent ports: - name: agent-zipkin-thrift port: 5775 @@ -144,6 +156,9 @@ items: app.kubernetes.io/name: jaeger app.kubernetes.io/component: zipkin spec: + selector: + matchLabels: + app: zipkin ports: - name: jaeger-collector-zipkin port: 9411 @@ -153,4 +168,3 @@ items: selector: app.kubernetes.io/name: jaeger app.kubernetes.io/component: all-in-one -