Skip to content

Commit

Permalink
Merge pull request #423 from tnozicka/fix-port-check-4.4
Browse files Browse the repository at this point in the history
[release-4.4] Bug 1851397: Fix port check 4.4
  • Loading branch information
openshift-merge-robot committed Aug 1, 2020
2 parents a5469ef + 65a3aac commit e15b91d
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 66 deletions.
60 changes: 27 additions & 33 deletions bindata/v4.1.0/kube-controller-manager/pod.yaml
Expand Up @@ -10,39 +10,16 @@ metadata:
kube-controller-manager: "true"
revision: "REVISION"
spec:
initContainers:
- name: wait-for-host-port
terminationMessagePolicy: FallbackToLogsOnError
image: ${IMAGE}
imagePullPolicy: IfNotPresent
command: ['/usr/bin/timeout', '30', "/bin/bash", "-c"]
args:
- |
echo -n "Waiting for port :10257 to be released."
while [ -n "$(lsof -ni :10257)" ]; do
echo -n "."
sleep 1
done
- name: wait-for-cpc-host-port
terminationMessagePolicy: FallbackToLogsOnError
image: ${IMAGE}
imagePullPolicy: IfNotPresent
command: ['/usr/bin/timeout', '30', "/bin/bash", "-c"]
args:
- |
echo -n "Waiting for port :10357 to be released."
while [ -n "$(lsof -ni :10357)" ]; do
echo -n "."
sleep 1
done
containers:
- name: kube-controller-manager
image: ${IMAGE}
imagePullPolicy: IfNotPresent
terminationMessagePolicy: FallbackToLogsOnError
command: ["/bin/bash", "-ec"]
command: ["/bin/bash", "-euxo", "pipefail", "-c"]
args:
- |
timeout 3m /bin/bash -exuo pipefail -c 'while [ -n "$(ss -Htanop \( sport = 10257 \))" ]; do sleep 1; done'
if [ -f /etc/kubernetes/static-pod-certs/configmaps/trusted-ca-bundle/ca-bundle.crt ]; then
echo "Copying system trust bundle"
cp -f /etc/kubernetes/static-pod-certs/configmaps/trusted-ca-bundle/ca-bundle.crt /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
Expand All @@ -64,6 +41,13 @@ spec:
name: resource-dir
- mountPath: /etc/kubernetes/static-pod-certs
name: cert-dir
startupProbe:
httpGet:
scheme: HTTPS
port: 10257
path: healthz
initialDelaySeconds: 0
timeoutSeconds: 3
livenessProbe:
httpGet:
scheme: HTTPS
Expand All @@ -82,9 +66,12 @@ spec:
image: ${CLUSTER_POLICY_CONTROLLER_IMAGE}
imagePullPolicy: IfNotPresent
terminationMessagePolicy: FallbackToLogsOnError
command: ["cluster-policy-controller", "start"]
command: ["/bin/bash", "-euxo", "pipefail", "-c"]
args:
- --config=/etc/kubernetes/static-pod-resources/configmaps/cluster-policy-controller-config/config.yaml
- |
timeout 3m /bin/bash -exuo pipefail -c 'while [ -n "$(ss -Htanop \( sport = 10357 \))" ]; do sleep 1; done'
exec cluster-policy-controller start --config=/etc/kubernetes/static-pod-resources/configmaps/cluster-policy-controller-config/config.yaml
resources:
requests:
memory: 200Mi
Expand All @@ -96,6 +83,13 @@ spec:
name: resource-dir
- mountPath: /etc/kubernetes/static-pod-certs
name: cert-dir
startupProbe:
httpGet:
scheme: HTTPS
port: 10357
path: healthz
initialDelaySeconds: 0
timeoutSeconds: 3
livenessProbe:
httpGet:
scheme: HTTPS
Expand Down Expand Up @@ -146,12 +140,12 @@ spec:
image: ${OPERATOR_IMAGE}
imagePullPolicy: IfNotPresent
terminationMessagePolicy: FallbackToLogsOnError
command: ["cluster-kube-controller-manager-operator", "cert-recovery-controller"]
command: ["/bin/bash", "-euxo", "pipefail", "-c"]
args:
- --kubeconfig=/etc/kubernetes/static-pod-resources/configmaps/kube-controller-cert-syncer-kubeconfig/kubeconfig
- --namespace=$(POD_NAMESPACE)
- --listen=0.0.0.0:9443
- -v=2
- |
timeout 3m /bin/bash -exuo pipefail -c 'while [ -n "$(ss -Htanop \( sport = 9443 \))" ]; do sleep 1; done'
exec cluster-kube-controller-manager-operator cert-recovery-controller --kubeconfig=/etc/kubernetes/static-pod-resources/configmaps/kube-controller-cert-syncer-kubeconfig/kubeconfig --namespace=${POD_NAMESPACE} --listen=0.0.0.0:9443 -v=2
resources:
requests:
memory: 50Mi
Expand Down
60 changes: 27 additions & 33 deletions pkg/operator/v411_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 e15b91d

Please sign in to comment.