Skip to content

Commit

Permalink
Remove unnecessary pod affinity config in controller resource
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpollet authored Sep 9, 2020
1 parent d9b9f13 commit b440989
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 54 deletions.
3 changes: 0 additions & 3 deletions docs/content/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ pod/maesh-controller-676fb86b89-pj8ph 1/1 Running 0 11s
pod/maesh-mesh-w62z5 1/1 Running 0 11s
pod/maesh-mesh-zjlpf 1/1 Running 0 11s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/maesh-mesh-api ClusterIP 100.69.177.254 <none> 8080/TCP 29s
NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
daemonset.apps/maesh-mesh 2 2 0 2 0 <none> 29s
Expand Down
13 changes: 0 additions & 13 deletions helm/chart/maesh/templates/controller/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,9 @@ spec:
prometheus.io/port: "4646"
spec:
serviceAccountName: maesh-controller
automountServiceAccountToken: true
securityContext:
runAsNonRoot: true
runAsUser: 999
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: component
operator: In
values:
- controller
topologyKey: "kubernetes.io/hostname"
{{- if .Values.controller.image.pullSecret }}
imagePullSecrets:
- name: {{ .Values.controller.image.pullSecret }}
Expand Down
1 change: 1 addition & 0 deletions helm/chart/maesh/templates/controller/controller-sa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ metadata:
chart: {{ include "maesh.chartLabel" . | quote}}
release: {{ .Release.Name | quote }}
heritage: {{ .Release.Service | quote }}
automountServiceAccountToken: true
19 changes: 0 additions & 19 deletions helm/chart/maesh/templates/mesh/mesh-pdb.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions helm/chart/maesh/templates/mesh/mesh-service.yaml

This file was deleted.

0 comments on commit b440989

Please sign in to comment.