Skip to content

Commit

Permalink
first change to apps/v1 for Install (istio#13015)
Browse files Browse the repository at this point in the history
* first change for install

* appsv1

* indention
  • Loading branch information
Iris authored and istio-testing committed Apr 3, 2019
1 parent c6ea1cd commit 2e10616
Show file tree
Hide file tree
Showing 17 changed files with 69 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@ metadata:
name: istio-citadel-service-account
namespace: {ISTIO_NAMESPACE}
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: istio-citadel
namespace: {ISTIO_NAMESPACE}
labels:
istio: citadel
spec:
replicas: 1
selector:
matchLabels:
istio: citadel
template:
metadata:
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,18 @@ metadata:
name: istio-citadel-service-account
namespace: {ISTIO_NAMESPACE}
---
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: istio-standalone-citadel
namespace: {ISTIO_NAMESPACE}
labels:
istio: standalone-citadel
spec:
replicas: 1
selector:
matchLabels:
istio: standalone-citadel
template:
metadata:
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,23 @@ spec:
istio: citadel
---
# Citadel watching all namespaces
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: istio-citadel
namespace: {ISTIO_NAMESPACE}
labels:
app: security
chart: security
heritage: Tiller
release: istio
istio: citadel
spec:
replicas: 1
selector:
matchLabels:
app: security
istio: citadel
template:
metadata:
labels:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: istio-galley
Expand All @@ -11,6 +11,9 @@ metadata:
istio: galley
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
istio: galley
strategy:
rollingUpdate:
maxSurge: 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- range $key, $spec := .Values }}
{{- if ne $key "enabled" }}
{{- if $spec.enabled }}
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ $key }}
Expand All @@ -21,6 +21,11 @@ spec:
replicas: 1
{{- end }}
{{- end }}
selector:
matchLabels:
{{- range $key, $val := $spec.labels }}
{{ $key }}: {{ $val }}
{{- end }}
template:
metadata:
labels:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: grafana
Expand All @@ -10,6 +10,9 @@ metadata:
release: {{ .Release.Name }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: grafana
template:
metadata:
labels:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: istiocoredns
Expand All @@ -10,6 +10,9 @@ metadata:
release: {{ .Release.Name }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: istiocoredns
template:
metadata:
name: istiocoredns
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: kiali
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@
{{- range $key, $spec := .Values }}
{{- if or (eq $key "policy") (eq $key "telemetry") }}
{{- if $spec.enabled }}
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: istio-{{ $key }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: istio-nodeagent
Expand All @@ -10,6 +10,9 @@ metadata:
heritage: {{ .Release.Service }}
istio: nodeagent
spec:
selector:
matchLabels:
istio: nodeagent
template:
metadata:
labels:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: istio-pilot
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# TODO: the original template has service account, roles, etc
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: prometheus
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# istio CA watching all namespaces
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: istio-citadel
Expand All @@ -12,6 +12,9 @@ metadata:
istio: citadel
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
istio: citadel
strategy:
rollingUpdate:
maxSurge: 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: servicegraph
Expand All @@ -10,6 +10,9 @@ metadata:
release: {{ .Release.Name }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: servicegraph
template:
metadata:
labels:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: istio-sidecar-injector
Expand All @@ -11,6 +11,9 @@ metadata:
istio: sidecar-injector
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
istio: sidecar-injector
strategy:
rollingUpdate:
maxSurge: 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ if eq .Values.provider "jaeger" }}

apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: istio-tracing
Expand All @@ -11,6 +11,9 @@ metadata:
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
spec:
selector:
matchLabels:
app: jaeger
template:
metadata:
labels:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ if eq .Values.provider "zipkin" }}

apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: istio-tracing
Expand All @@ -11,6 +11,9 @@ metadata:
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
spec:
selector:
matchLabels:
app: zipkin
template:
metadata:
labels:
Expand Down

0 comments on commit 2e10616

Please sign in to comment.