Skip to content

Commit

Permalink
Merge pull request #472 from ingvagabund/deploy-pdb-for-apiserver
Browse files Browse the repository at this point in the history
bug 1998031: Deploy PDB to prevent more than one replica going unavailable
  • Loading branch information
openshift-merge-robot committed Sep 1, 2021
2 parents 5f84fca + 181632a commit 4cc29cf
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bindata/v3.11.0/openshift-apiserver/pdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: openshift-apiserver-pdb
namespace: openshift-apiserver
spec:
maxUnavailable: 1
selector:
matchLabels:
app: openshift-apiserver-a
apiserver: "true"
1 change: 1 addition & 0 deletions pkg/operator/starter.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ func RunOperator(ctx context.Context, controllerConfig *controllercmd.Controller
"v3.11.0/openshift-apiserver/svc.yaml",
"v3.11.0/openshift-apiserver/sa.yaml",
"v3.11.0/openshift-apiserver/trusted_ca_cm.yaml",
"v3.11.0/openshift-apiserver/pdb.yaml",
},
kubeInformersForNamespaces,
kubeClient,
Expand Down
31 changes: 31 additions & 0 deletions pkg/operator/v311_00_assets/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4cc29cf

Please sign in to comment.