Skip to content

Commit

Permalink
Seperates manager.yaml into patches
Browse files Browse the repository at this point in the history
  • Loading branch information
somtochiama committed Jun 6, 2020
1 parent 3be60ae commit b965cf3
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 33 deletions.
3 changes: 3 additions & 0 deletions kubeproxy/config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ images:
- name: controller
newName: controller
newTag: latest
patchesStrategicMerge:
- patches/apiserver_endpoint.patch.yaml
- patches/tolerations_controlplane.patch.yaml
12 changes: 0 additions & 12 deletions kubeproxy/config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ spec:
image: controller:latest
imagePullPolicy: IfNotPresent
name: manager
env:
- name: KUBERNETES_SERVICE_HOST
value: "172.17.0.2"
- name: KUBERNETES_SERVICE_PORT
value: "6443"
resources:
limits:
cpu: 100m
Expand All @@ -44,10 +39,3 @@ spec:
cpu: 100m
memory: 20Mi
terminationGracePeriodSeconds: 10
tolerations:
- key: "node.kubernetes.io/not-ready"
operator: "Exists"
effect: "NoSchedule"
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"
15 changes: 15 additions & 0 deletions kubeproxy/config/manager/patches/apiserver_endpoint.patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller-manager
namespace: system
spec:
template:
spec:
containers:
- name: manager
env:
- name: KUBERNETES_SERVICE_HOST
value: "172.17.0.2"
- name: KUBERNETES_SERVICE_PORT
value: "6443"
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: controller-manager
namespace: system
spec:
template:
spec:
tolerations:
- key: "node.kubernetes.io/not-ready"
operator: "Exists"
effect: "NoSchedule"
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"
Empty file.
21 changes: 0 additions & 21 deletions kubeproxy/config/rbac/auth_proxy_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,3 @@ rules:
resources:
- subjectaccessreviews
verbs: ["create"]
- apiGroups: [""]
resources: ["*"]
verbs: ["list", "get", "watch"]
- apiGroups: [""]
resources: ["events", "serviceaccounts"]
verbs: ["create", "patch", "update"]
- apiGroups: ["apps", "extensions"]
resources: ["daemonsets"]
verbs: ["get", "watch", "list", "create", "patch"]
- apiGroups: ["rbac.authorization.k8s.io"]
resources: ["clusterrolebindings"]
verbs: ["get", "watch", "list", "create"]
- apiGroups: ["app.k8s.io"]
resources: ["applications"]
verbs: ["get", "watch", "list", "create", "patch"]
- apiGroups: ["discovery.k8s.io"]
resources: ["endpointslices"]
verbs: ["list", "watch"]
- apiGroups: ["events.k8s.io"]
resources: ["events"]
verbs: ["create", "patch", "update"]

0 comments on commit b965cf3

Please sign in to comment.