Skip to content

Commit

Permalink
Fix openpitrix secret does not update
Browse files Browse the repository at this point in the history
  • Loading branch information
pixiake committed Jul 15, 2019
1 parent b0c6d3a commit 3c3a28e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions roles/openpitrix/templates/deploy-k8s.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ if [ "${BASE}" == "1" ] || [ "${ALL}" == "1" ];then
make
cd ../..

kubectl delete secret iam-secret-key -n ${NAMESPACE} ## delete iam-secret-key
kubectl create secret generic iam-secret-key --from-file=./kubernetes/iam-config/secret-key.txt -n ${NAMESPACE}
kubectl create secret generic iam-client -n ${NAMESPACE} \
--from-file=./kubernetes/iam-config/client-id.txt \
Expand Down Expand Up @@ -271,4 +272,6 @@ if [ "${DASHBOARD}" == "1" ] || [ "${ALL}" == "1" ];then
done
fi

kubectl -n ${NAMESPACE} scale deployment openpitrix-api-gateway-deployment --replicas=0
kubectl -n ${NAMESPACE} scale deployment openpitrix-api-gateway-deployment --replicas=1
echo "Deployed successfully"
2 changes: 1 addition & 1 deletion roles/prepare/base/tasks/ks-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
- upgrade

- name: KubeSphere | Getting OP Token
command: >
shell: >
{{ kubesphere_dir }}/ks-init/jwt.sh {{ op_secret_str }} '{"sub": "system","role": "global_admin","iat": 1516239022,"exp": 1816239022}'
register: op_token
tags:
Expand Down

0 comments on commit 3c3a28e

Please sign in to comment.