Explorar o código

Merge pull request #9972 from smarterclayton/sdn_prep

Prepare to split openshift-sdn out of the openshift binary
OpenShift Merge Robot %!s(int64=6) %!d(string=hai) anos
pai
achega
472b3687f3
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      roles/openshift_sdn/files/sdn.yaml

+ 3 - 0
roles/openshift_sdn/files/sdn.yaml

@@ -102,6 +102,9 @@ spec:
           oc config --config=/tmp/kubeconfig set-credentials sa "--token=$( cat /var/run/secrets/kubernetes.io/serviceaccount/token )"
           oc config --config=/tmp/kubeconfig set-context "$( oc config --config=/tmp/kubeconfig current-context )" --user=sa
           # Launch the network process
+          if which openshift-sdn; then
+            exec openshift-sdn --config=/etc/origin/node/node-config.yaml --kubeconfig=/tmp/kubeconfig --loglevel=${DEBUG_LOGLEVEL:-2}
+          fi
           exec openshift start network --config=/etc/origin/node/node-config.yaml --kubeconfig=/tmp/kubeconfig --loglevel=${DEBUG_LOGLEVEL:-2}
 
         securityContext: