Skip to content

Commit

Permalink
updated deployment yaml manifests by adding affinity and host network (
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickstruyf3 authored Aug 1, 2022
1 parent 473da75 commit 86160dd
Showing 1 changed file with 25 additions and 11 deletions.
36 changes: 25 additions & 11 deletions manifests/cloud-provider-nutanix-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,53 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
k8s-app: nutanix-cloud-controller-manager
name: nutanix-cloud-controller-manager
namespace: kube-system
spec:
replicas: 2
selector:
matchLabels:
k8s-app: nutanix-cloud-controller-manager
strategy:
type: Recreate
template:
metadata:
labels:
k8s-app: nutanix-cloud-controller-manager
spec:
hostNetwork: true
priorityClassName: system-cluster-critical
nodeSelector:
node-role.kubernetes.io/master: ""
serviceAccountName: cloud-controller-manager
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- topologyKey: "kubernetes.io/hostname"
labelSelector:
matchLabels:
k8s-app: nutanix-cloud-controller-manager
dnsPolicy: Default
tolerations:
- key: "node.cloudprovider.kubernetes.io/uninitialized"
value: "true"
effect: "NoSchedule"
- key: "CriticalAddonsOnly"
operator: "Exists"
- key: "node-role.kubernetes.io/master"
effect: NoSchedule
- effect: NoExecute
key: node.kubernetes.io/not-ready
- effect: NoSchedule
key: node-role.kubernetes.io/master
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300
tolerationSeconds: 120
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 120
- effect: NoSchedule
key: node.cloudprovider.kubernetes.io/uninitialized
operator: Exists
- effect: NoSchedule
key: node.kubernetes.io/not-ready
operator: Exists
containers:
- image: $IMG
imagePullPolicy: Always
Expand Down

0 comments on commit 86160dd

Please sign in to comment.