k8s_create_cluster.yml 589 B

123456789101112
  1. - name: add sync-user option
  2. include_role:
  3. name: utils/sync-user/on
  4. - name: "Create essential services, wait for a few minutes. You can open another terminal and execute `kubectl get pods -n onecloud -w` to watch the process."
  5. shell: "/opt/yunion/bin/ocadm cluster create {{ init_cluster_args }}"
  6. retries: 6
  7. delay: 10
  8. - name: "patch product version to {{ product_version }} "
  9. shell: |
  10. KUBECONFIG={{ENV_KUBECONFIG}} kubectl -n onecloud patch onecloudcluster default --type='json' -p '[{"op": "replace", "path": "/spec/productVersion", "value": {{ product_version }} }]'