-
Notifications
You must be signed in to change notification settings - Fork 12
Updating deployment guide #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| # Install cert-manager | ||
|
|
||
| Install the CustomResourceDefinition resources separately. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is great! Could we also just add a link to their official install guide in case this becomes outdated? |
||
|
|
||
| ```bash | ||
| # Kubernetes 1.15+ | ||
| $ kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v0.14.3/cert-manager.crds.yaml | ||
|
|
||
| # Kubernetes <1.15 | ||
| $ kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v0.14.3/cert-manager-legacy.crds.yaml | ||
| ``` | ||
|
|
||
| Create the namespace for cert-manager. | ||
|
|
||
| ```bash | ||
| kubectl create namespace cert-manager | ||
| ``` | ||
|
|
||
| Add the Jetstack Helm repository. | ||
|
|
||
| ```bash | ||
| helm repo add jetstack https://charts.jetstack.io | ||
| ``` | ||
|
|
||
| Update your local Helm chart repository cache. | ||
|
|
||
| ```bash | ||
| helm repo update | ||
| ``` | ||
|
|
||
| Install the cert-manager Helm chart. | ||
|
|
||
| ```bash | ||
| # For Helm v3+ | ||
| $ helm install \ | ||
| cert-manager jetstack/cert-manager \ | ||
| --namespace cert-manager \ | ||
| --version v0.14.3 | ||
|
|
||
| # For Helm v2 | ||
| $ helm install \ | ||
| --name cert-manager \ | ||
| --namespace cert-manager \ | ||
| --version v0.14.3 \ | ||
| jetstack/cert-manager | ||
| ``` | ||
|
|
||
| Wait for the deployment to come up | ||
|
|
||
| ```bash | ||
| $ kubectl --namespace cert-manager wait --for=condition=available deployments --all | ||
| deployment.extensions/cert-manager condition met | ||
| deployment.extensions/cert-manager-cainjector condition met | ||
| deployment.extensions/cert-manager-webhook condition met | ||
| ``` | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,20 +11,15 @@ running in the cluster to provision certificates for the CRD webhooks. | |
| For the most up-to-date guide, refer to [the official getting started guide](https://www.ververica.com/getting-started). | ||
|
|
||
| ```shell | ||
| # 0. | ||
| # Add the Ververica chart repository | ||
| # 0. Add the Ververica chart repository | ||
| helm repo add ververica https://charts.ververica.com | ||
|
|
||
| # 1. | ||
| # Deploy the Ververica Platform | ||
| # 1. Deploy the Ververica Platform | ||
|
|
||
| # For deploying jobs into namespaces outside of the VVP deployment namespace, | ||
| # specify the `rbac.additionalNamespaces` value with a set of namespaces. | ||
| # In this case, add the `top-speed` namespace associated with the sample manifests in `/config/samples`. | ||
|
|
||
| # Create the `top-speed` namespace if it doesn't exist | ||
| kubectl create namespace top-speed || true | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you think we could keep this in? Installing the VVP with the additional namespace support was failing for me yesterday if the namespace didn't already exist. |
||
|
|
||
| ## For the Enterprise Edition | ||
| helm install --namespace vvp \ | ||
| --name vvp \ | ||
|
|
@@ -33,21 +28,42 @@ helm install --namespace vvp \ | |
| --set rbac.additionalNamespaces={top-speed} | ||
|
|
||
| ## Or, for the Community Edition | ||
| For helm 2: | ||
|
|
||
| ```bash | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think these extra ```bash sections are throwing off something with rendering. Could we remove them and just keep the whole thing in the ```shell block? |
||
| helm install --namespace vvp \ | ||
| --name vvp \ | ||
| ververica/ververica-platform \ | ||
| --set acceptCommunityEditionLicense=true \ | ||
| --set rbac.additionalNamespaces={top-speed} | ||
| ``` | ||
|
|
||
| # 2. | ||
| # Wait for the deployment to come up | ||
| For helm 3: | ||
|
|
||
| ```bash | ||
| helm install vvp ververica/ververica-platform -n vvp --set acceptCommunityEditionLicense=true | ||
| ``` | ||
|
|
||
| ## 2.Wait for the deployment to come up | ||
|
|
||
| ```bash | ||
| kubectl --namespace vvp wait --for=condition=available deployments --all | ||
| ``` | ||
|
|
||
| ## 3. Access the platform UI locally at port 8080 | ||
|
|
||
| # 3. | ||
| # Access the platform UI locally at port 8080 | ||
| kubectl port-forward --namespace vvp service/vvp-ververica-platform 8080:80 & | ||
| ```bash | ||
| kubectl port-forward --namespace vvp service/vvp-ververica-platform 8080:80 | ||
| ``` | ||
|
|
||
| NOTE: If you don't have cert-manager you may get following error: | ||
|
|
||
| ```bash | ||
| Error: Internal error occurred: failed calling webhook "webhook.cert-manager.io": Post https://cert-manager-webhook.cert-manager.svc:443/mutate?timeout=30s: no endpoints available for service "cert-manager-webhook" | ||
| ``` | ||
|
|
||
| To deploy cert-manager[`check out this guide`](./cert-manager.md) | ||
|
Comment on lines
+59
to
+65
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you think about moving this to the top of the guide where Cert-Manager is mentioned? |
||
|
|
||
| ### Installing the Operator | ||
|
|
||
| Until there is a Helm chart repository set up for this operator, copies of the charts | ||
|
|
@@ -58,11 +74,10 @@ in the same namespace as the Ververica Platform. | |
| This guide assumes you are operating in the base `ververica-platform-k8s-operator` directory. | ||
|
|
||
| ```shell | ||
| # 4. | ||
| # Install the Operator | ||
| # 4. Install the Operator | ||
| # Pointed at the service deployed with the Ververica Platform. | ||
| # NOTE: the pods might crash on startup and enter a restart loop until the CRDs | ||
| # are present, but this should be fine. | ||
| # are present, but this should be fine. | ||
|
|
||
| ## Enterprise | ||
| helm install --namespace vvp \ | ||
|
|
@@ -72,24 +87,58 @@ helm install --namespace vvp \ | |
| --set vvpUrl=http://vvp-ververica-platform | ||
|
|
||
| ## Community | ||
|
|
||
| ### For helm 2: | ||
| helm install --namespace vvp \ | ||
| --name vp-k8s-operator \ | ||
| ./charts/vp-k8s-operator \ | ||
| --set vvpEdition=community \ | ||
| --set vvpUrl=http://vvp-ververica-platform | ||
|
|
||
| # 5. | ||
| # Install the CRDs | ||
| # Using the Cert created by the operator chart for serving webhooks. | ||
| # Pointed at the webhook conversion service of the operator. | ||
| ### For helm 3: | ||
| # Try dryrun to check the rendered templates | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for adding the Helm 3 docs! Do you think we could remove the dry run bits though? I think it would be best if people could just run each of these commands and have it deploy without modification. |
||
| $ helm install -n vvp vp-k8s-operator ./charts/vp-k8s-operator \ | ||
| --set vvpEdition=community \ | ||
| --set vvpUrl=http://vvp-ververica-platform --dry-run | ||
|
|
||
| # Deploy the chart | ||
| $ helm install -n vvp vp-k8s-operator ./charts/vp-k8s-operator \ | ||
| --set vvpEdition=community \ | ||
| --set vvpUrl=http://vvp-ververica-platform | ||
| ``` | ||
|
|
||
|
|
||
| ## 5.Install the CRDs | ||
|
|
||
| ### Using the Cert created by the operator chart for serving webhooks | ||
|
|
||
| Pointed at the webhook conversion service of the operator. | ||
|
|
||
| With helm2: | ||
|
|
||
| ```bash | ||
| helm install --namespace vvp \ | ||
| --name vp-k8s-operator-crds \ | ||
| ./charts/vp-k8s-operator-crds \ | ||
| --set webhookCert.name=vp-k8s-operator-serving-cert \ | ||
| --set webhookService.name=vp-k8s-operator-webhook-service | ||
| ``` | ||
|
|
||
| # 6. | ||
| # Wait for the deployment to come up | ||
| ```bash | ||
| # Try dryrun to check the rendered templates | ||
| $ helm install -n vvp vp-k8s-operator-crds ./charts/vp-k8s-operator-crds \ | ||
| --set webhookCert.name=vp-k8s-operator-serving-cert \ | ||
| --set webhookService.name=vp-k8s-operator-webhook-service --dry-run | ||
|
|
||
| # Deploy | ||
| $ helm install -n vvp vp-k8s-operator-crds ./charts/vp-k8s-operator-crds \ | ||
| --set webhookCert.name=vp-k8s-operator-serving-cert \ | ||
| --set webhookService.name=vp-k8s-operator-webhook-service | ||
| ``` | ||
|
|
||
| ## 6. Wait for the deployment to come up | ||
|
|
||
| ```bash | ||
| kubectl --namespace vvp wait --for=condition=available deployments --all | ||
| ``` | ||
|
|
||
|
|
@@ -98,17 +147,18 @@ kubectl --namespace vvp wait --for=condition=available deployments --all | |
| The samples can all be deployed through `kubectl`. | ||
|
|
||
| ```shell | ||
| # 7. | ||
| # Install the samples in the top-speed namespace. | ||
| # 7. Install the samples in the top-speed namespace. | ||
|
|
||
| # Create namespace if it doesn't exist | ||
| kubectl create namespace top-speed || true | ||
|
|
||
| # Create the VpDeploymentTarget | ||
| kubectl apply -f config/samples/ververicaplatform_v1beta2_vpdeploymenttarget.yaml | ||
|
|
||
| # Create the VpDeployment | ||
| kubectl apply -f config/samples/ververicaplatform_v1beta2_vpdeployment.yaml | ||
|
|
||
| # 8. | ||
| # Watch the Top Speed V2 deployment come online | ||
| # 8. Watch the Top Speed V2 deployment come online | ||
|
|
||
| # Visit http://localhost:8080/app/#/namespaces/default/deployments to see the UI | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about this slight tweak?