rancher-gitlab-deploy | Painless deployment of projects | Continuous Deployment library
kandi X-RAY | rancher-gitlab-deploy Summary
kandi X-RAY | rancher-gitlab-deploy Summary
rancher-gitlab-deploy is a tool for deploying containers built with GitLab CI onto your Rancher infrastructure. It fits neatly into the gitlab-ci.yml workflow and requires minimal configuration. It will upgrade existing services as part of your CI workflow. Both GitLab's built in Docker registry and external Docker registries are supported. rancher-gitlab-deploy will pick as much of its configuration up as possible from environment variables set by the GitLab CI runner. This tool is not suitable if your services are not already created in Rancher. It will upgrade existing services, but will not create new ones. If you need to create services you should use rancher-compose in your CI workflow, but that means storing any secret environment variables in your Git repo.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- This function is used to create an apis .
- Turn HTTP requests logging .
- Prints an error message .
- Print a message .
- Display a warning message .
rancher-gitlab-deploy Key Features
rancher-gitlab-deploy Examples and Code Snippets
Community Discussions
Trending Discussions on rancher-gitlab-deploy
QUESTION
ANSWER
Answered 2020-Jan-21 at 07:08I am not sure why this post has been down-voted, but fun fact, seems there is a bug in Rider 2019.3.1.
The issue arose because even though the file was showing up as GetOrderRelatedInfoForAccountingEntryCreation.sql
in Rider aka pascal case it was actually written as a camel case (i.e. getOrderRelatedInfoForAccountingEntryCreation.sql
) on the disk, go figure.
Once the name adjusted to pascal for the actual file on the disk, everything worked fine.
QUESTION
I have created a workload on Rancher. This workload created from an image which is hosted on a gitlab-ci project registry.
I want to force rancher to download a new version of this image and upgrade workload.
I want to do this from a .gitlab-ci.yml script. How to do this with Rancher version 2? With Rancher 1.6 I used this script:
...ANSWER
Answered 2018-Jul-04 at 12:50In rancher 2, much of the management of workloads is delegated to Kubernetes via its api or CLI (kubectl).
You could patch the deployment to specify a new image/version, but if you are using a tag like :latest
which moves, you will need to force Kubernetes to redeploy the pods by changing something about the deployment spec.
One common way to do this is to change/add an environment variable, which forces a redeploy.
In Gitlab, set two variables in your gitlab project or group to pass authentication information into the build.
The kubectl patch
will update or add an environment variable called FORCE_RESTART_AT
on your deployment's container that will force a redeploy each time it is set because Gitlab's pipeline ID changes.
You will need to specify the namespace, the name of your deployment, the name of the container and the image. If the image tag is changing, there is no need to supply the environment variable. If you are using :latest
, be sure that the your container's imagePullPolicy: Always
is set, which is the default if Kubernetes detects an image using :latest
.
The image diemscott/rancher-cli-k8s
is a simple image derived from rancher/cli
that also includes kubectl
.
QUESTION
I have a Gitlab CI/CD setup that deploys a spring boot application to a DigitalOcean droplet using Rancher.
The task fails with a wrong Rancher API Url and Key error message when in fact, those API details are correct judging from the fact that I have run the deployment manually using the "rancher up" command from the rancher cli.
.gitlab-ci.yml source
...ANSWER
Answered 2018-Jul-21 at 09:03I eventually found the cause of the problem by doing a bit more research online. I discovered that the RANCHER_URL that was required was the base url rather than the full url provided in the Rancher UI. For example, I was initially using the full url generated by the Rancher UI system that looked like this http://XXX.XXX.XXX.XX:8080/v2-beta/projects/1a5. The correct URL is http://XXX.XXX.XXX.XX:8080/.
I set the RANCHER_URL as a secret environment variable in Gitlab Saas (Cloud/Online).
I appreciate everyone that tried to help.
Thank you very much.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rancher-gitlab-deploy
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page