techsupport:kube3760
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| techsupport:kube3760 [2022/11/30 21:54] – [Conclusion] kjohns23 | techsupport:kube3760 [2023/03/15 17:20] (current) – kjohns23 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Gitlab and Kubernetes in CIS*3760 F23 ===== | + | ==== Gitlab and Kubernetes in CIS*3760 F23 ==== |
| This is a guide to assist students in CIS*3760 with the process of deploying an application developed on the SoCS Gitlab Server to our Kubernetes cluster. Each project group will be provided with their own server running RKE2 Kubernetes, on which to deploy. The server will be located at cis3760-XX.socs.uoguelph.ca where XX is your group number. | This is a guide to assist students in CIS*3760 with the process of deploying an application developed on the SoCS Gitlab Server to our Kubernetes cluster. Each project group will be provided with their own server running RKE2 Kubernetes, on which to deploy. The server will be located at cis3760-XX.socs.uoguelph.ca where XX is your group number. | ||
| Line 15: | Line 15: | ||
| If you prefer to interact with Kubernetes directly from your own machine, the kubectl command can be installed directly on your local machine. | If you prefer to interact with Kubernetes directly from your own machine, the kubectl command can be installed directly on your local machine. | ||
| - | Follow the instructions for your Operating system from the [[ https:// | + | Follow the instructions for your Operating system from the [[ https:// |
| - | From the [[ https:// | + | From the [[ https:// |
| Unfortunately, | Unfortunately, | ||
| Line 88: | Line 88: | ||
| Next, run the following command on your kubernetes server, specifying your token from step 3, to install the gitlab agent in kubernetes and automatically connect it to your gitlab project. | Next, run the following command on your kubernetes server, specifying your token from step 3, to install the gitlab agent in kubernetes and automatically connect it to your gitlab project. | ||
| + | < | ||
| < | < | ||
| Line 97: | Line 97: | ||
| 2. Run the following command, substituting the username you entered in the previous step for DOCKER_USER, | 2. Run the following command, substituting the username you entered in the previous step for DOCKER_USER, | ||
| - | 3. A Manifest file needs to be defined in Gitlab. This is a yaml file that lists the kubernetes specifications required to deploy your application within Kubernetes. A sample mainefest file is available in the code block below, and should be placed in manifests/ | + | 3. A Manifest file needs to be defined in Gitlab. This is a yaml file that lists the kubernetes specifications required to deploy your application within Kubernetes. A sample mainefest file is available in the code block below, and should be placed in manifests/ |
| < | < | ||
| Line 162: | Line 162: | ||
| All the pieces are now in place to deploy your application automatically to your gitlab server. You can view your application by connecting to your cis3760xx.socs.uoguelph.ca server in a web browser. Each time your container is updated within Gitlab, the agent will automatically pull the latest version to the kubernetes server. | All the pieces are now in place to deploy your application automatically to your gitlab server. You can view your application by connecting to your cis3760xx.socs.uoguelph.ca server in a web browser. Each time your container is updated within Gitlab, the agent will automatically pull the latest version to the kubernetes server. | ||
| + | |||
| + | ==== Graphical Representation ==== | ||
| + | |||
| + | The following image is a graphical representation of the SoCS Gitlab and Kubernetes Setup and how the pieces fit together and relate to each other. | ||
| + | |||
| + | {{: | ||
techsupport/kube3760.1669845254.txt.gz · Last modified: 2022/11/30 21:54 by kjohns23