As an administrator who sets up Code Stream, after you log in, you can add endpoints, create and run pipelines, and view the results.
Code Stream connects to endpoints on premises through a cloud proxy. Your network configuration and the location of your endpoints on premises in those networks determine how many cloud proxy instances you need. If all your endpoints on premises are in the same network, install a single cloud proxy. If your endpoints on premises reside in different networks, install one cloud proxy for each independent network. Then, in the endpoint configuration in Code Stream, select the cloud proxy that resides in the same network as your endpoint.
In this use case, you add a cloud proxy that connects your cloud-based Code Stream service to a GitLab repository on premises so that your pipeline can download a Kubernetes file.
To add the cloud proxy, you download the OVA from Cloud Assembly, and install it in your vCenter Server instance. Then, in Code Stream you add a Git endpoint that Code Stream uses to connect through the cloud proxy to the on-premises repository. You will then create a pipeline that obtains the developer code from the on-premises GitLab repository, and deploys it to a Kubernetes cluster.
A getting started process is also available as a guided setup in the Code Stream user interface. Click the Help icon and click Guided Setup.
- Verify that a GitLab repository or a GitHub repository exists on premises, and contains the code that your pipeline will use.
- To connect your cloud-based Code Stream service to your GitLab repository or a GitHub repository on premises, verify that you can access Cloud Assembly so that you can add a cloud proxy.
- Set up the cloud proxy that your cloud-based Code Stream uses to connect to your on-premises GitLab repository.
Or, if a local cloud proxy is available, when you add your Git endpoint you can select Default for the cloud proxy. In this use case example, the cloud proxy name is codestream.
- To add a cloud proxy, download the cloud proxy OVA, and install it in your vCenter Server instance.
- Go to your Cloud Assembly service, click Infrastructure, click Cloud Proxies, click New, and install the cloud proxy.
- Add a Git endpoint that connects Code Stream to your on-premises GitLab repository.
- Click Endpoints.
- Select the Git endpoint type, and enter a name and description.
- Select the cloud proxy that you created. In this example, the cloud proxy name is codestream. Or, to use a local cloud proxy select Default.
- Enter the remaining information and the token.
- To test the connection to the endpoint, click Validate, then save the endpoint.
- Click Pipelines, create a pipeline, and add a task that uses the Git endpoint. You can optionally add an email notification.
- Save your pipeline, then click Enable, which enables it to run.
- After you enable the pipeline, click Run.
- Click Executions, and observe your pipeline as it runs.
- If the pipeline fails, correct the problem and run it again.
- Click Dashboards, and select your pipeline dashboard so that you can monitor the pipeline activity.
Your pipeline ran, and downloaded the developer file from a GitLab instance. The pipeline task deployed the application to a Kubernetes cluster, and you monitored all the activity on the pipeline dashboard.
What to do next
To learn more about using Code Stream, see What is VMware Code Stream and how does it work.
If you don’t find the information you need here, you can get more help in the product.
- To get the context-specific information, when and where you need it, click and read the signposts and tooltips in the user interface.
- Open the In-product support panel and read the topics that appear for the active user interface page. To get answers to questions, you can also search in the panel.