Skip to content

Commit

Permalink
refacto high availability
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMarche committed Jan 29, 2023
1 parent 5d3290f commit cf7664a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
3 changes: 0 additions & 3 deletions cloud-controller-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ spec:
- key: node.cloudprovider.kubernetes.io/uninitialized
value: "true"
effect: NoSchedule
- key: CriticalAddonsOnly
value: "true"
effect: NoExecute
- key: node-role.kubernetes.io/master
effect: NoSchedule
- key: node.kubernetes.io/network-unavailable
Expand Down
5 changes: 1 addition & 4 deletions cluster-autoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ spec:
memory: 600Mi
command:
- ./cluster-autoscaler
- --v=2
- --v=4
- --stderrthreshold=info
- --cloud-provider=gce
- --skip-nodes-with-local-storage=false
Expand All @@ -164,8 +164,5 @@ spec:
nodeSelector:
node-role.kubernetes.io/master: "true"
tolerations:
- key: CriticalAddonsOnly
value: "true"
effect: NoExecute
- key: node-role.kubernetes.io/master
effect: NoSchedule
2 changes: 1 addition & 1 deletion coredns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ metadata:
k8s-app: kube-dns
kubernetes.io/name: "CoreDNS"
spec:
#replicas: 1
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
Expand Down
17 changes: 16 additions & 1 deletion traefik.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
apiVersion: v1
kind: Namespace
metadata:
name: traefik
name: traefik
---
apiVersion: v1
kind: Service
metadata:
name: traefik-exporter-svc
namespace: traefik
spec:
clusterIP: None
ports:
- name: '9100'
port: 9100
protocol: TCP
targetPort: 9100
selector:
app.kubernetes.io/name: traefik

0 comments on commit cf7664a

Please sign in to comment.