techsupport:kubernetes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
techsupport:kubernetes [2022/04/20 18:22] – kjohns23 | techsupport:kubernetes [2022/11/18 17:30] (current) – kjohns23 | ||
---|---|---|---|
Line 39: | Line 39: | ||
NB: In the future building a Docker container and pushing to the SoCS registry could be done through the CI/CD pipeline, but this is not yet available. | NB: In the future building a Docker container and pushing to the SoCS registry could be done through the CI/CD pipeline, but this is not yet available. | ||
- | 2. Create .gitlab/agent/ | + | 2. Create .gitlab/agents/ |
gitops: | gitops: | ||
Line 62: | Line 62: | ||
Here | Here | ||
- | 7. Add the newly created yaml file with kubectl | + | 7. Add the newly created yaml file with kubectl |
- | 8. The next steps are only necessary if you are using the SoCS gitlab server for your container registry, or if you are storing your container in another private registry. In your Gitlab Repo go to Settings > Registry > Deploy Tokens. Enter a name, optionally a username, and check read_registry | + | 8. The next two steps are only necessary if you are using the SoCS gitlab server for your container registry, or if you are storing your container in another private registry. In your Gitlab Repo go to Settings > Registry > Deploy Tokens. Enter a name, optionally a username, and check read_registry |
9. Run the following command, replacing your credentials. < | 9. Run the following command, replacing your credentials. < | ||
+ | |||
+ | Replace BASE_64_BASIC_AUTH_CREDENTIALS with the output of the above command. Replace your registry username and password as well. | ||
{ | { | ||
" | " | ||
- | " | + | " |
" | " | ||
" | " | ||
" | " | ||
- | " | + | " |
| | ||
} | } | ||
} | } | ||
- | Modify | + | Save that file and run < |
| | ||
Line 85: | Line 87: | ||
| | ||
name: registry-credentials | name: registry-credentials | ||
- | | + | |
type: kubernetes.io/ | type: kubernetes.io/ | ||
data: | data: | ||
| | ||
+ | |||
+ | Take this final file, and run < | ||
+ | |||
+ | TODO REPLACE WITH EASIER METHOD kubectl create secret docker-registry < | ||
+ | |||
+ | The gitlab agent is now set up and can pull your container from the SoCS container registry. | ||
+ | |||
+ | ==== Deploying your Application ==== | ||
+ | |||
+ | Look at official documentation TODO add instructions on how to do this. TODO maybe add a sample repository. | ||
+ | |||
+ | The yaml file should be placed in your project git repository. | ||
techsupport/kubernetes.1650478932.txt.gz · Last modified: 2022/04/20 18:22 by kjohns23