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:45] – 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 43: | Line 43: | ||
| --dockerfile " | --dockerfile " | ||
| --destination " | --destination " | ||
| - | tags: | ||
| - | - docker-build | ||
| </ | </ | ||
| Line 89: | Line 87: | ||
| </ | </ | ||
| - | Next, run the following command on your kubernetes server 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 95: | ||
| 1. Kubernetes needs to be able to connect to the Gitlab Docker Registry. In your Gitlab Project go to Settings > Repository > Deploy Tokens. Enter a name to label the token, a username, and check read_registry | 1. Kubernetes needs to be able to connect to the Gitlab Docker Registry. In your Gitlab Project go to Settings > Repository > Deploy Tokens. Enter a name to label the token, a username, and check read_registry | ||
| - | 2. Run the following command, | + | 2. Run the following command, |
| - | 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 163: | Line 161: | ||
| ==== Conclusion ==== | ==== Conclusion ==== | ||
| - | 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. | + | 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. |
| + | |||
| + | ==== 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.1669844733.txt.gz · Last modified: 2022/11/30 21:45 by kjohns23