Site Tools


techsupport:kubernetes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
techsupport:kubernetes [2022/04/20 18:25] kjohns23techsupport: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/agent-name/config.yaml in your Gitlab project, replacing agent-name with whatever you want to name your agent. +2. Create .gitlab/agents/agent-name/config.yaml in your Gitlab project, replacing agent-name with whatever you want to name your agent. 
  
   gitops:   gitops:
Line 62: Line 62:
    Here    Here
        
-7. Add the newly created yaml file with kubectl add -f filename.yml The agent should now be installed. Time to deploy your application.+7. Add the newly created yaml file with kubectl apply -f filename.yml The agent should now be installed. Time to deploy your application.
  
 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 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
Line 93: Line 93:
            
 Take this final file, and run <code>kubectl apply -f filename</code> Take this final file, and run <code>kubectl apply -f filename</code>
 +
 +TODO REPLACE WITH EASIER METHOD kubectl create secret docker-registry <name> --docker-server=DOCKER_REGISTRY_SERVER --docker-username=DOCKER_USER --docker-password=DOCKER_PASSWORD --docker-email=DOCKER_EMAIL
 +
 +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.1650479131.txt.gz · Last modified: 2022/04/20 18:25 by kjohns23