Upgrading a service leads to Rancher losing persistence of environment variables

0 votes

I am using rancher-compose for upgrading my services. I  have set an environment variable and then I am running the compose command over the terminal. After the upgrade, the environment variable I initialized previously in the UI is not there anymore.

The rancher-compose command that I am using is:

rancher-compose -p [my_stack_name] --url ${RANCHER_ENDPOINT} --access-key ${ACCESS_KEY} --secret-key ${SECRET_KEY} up -d --pull --upgrade --confirm-upgrade
Can anyone help me with this?
Apr 27, 2018 in DevOps & Agile by Atul
• 10,240 points
163 views

1 answer to this question.

0 votes

when you upgrade, what it will do is, it will do the service match the definition in the compose file that is provided by you. If you are changing things in the UI and not changing your compose file, they will be gone.

I hope that it will let you resolve your problem.

answered Apr 27, 2018 by shubham
• 6,910 points

Related Questions In DevOps & Agile

0 votes
1 answer
0 votes
1 answer
+5 votes
2 answers

How to program and get the Digital Ocean ID of the current Droplet from within the Droplet?

You can run curl http://169.254.169.254/metadata/v1/id within the ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by Atul
• 10,240 points
599 views
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
1,230 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
498 views
+1 vote
2 answers

is it possible to assign a Feature/User Story/Task to a team [Group] in VSTS

In most cases, we would break Work ...READ MORE

answered Oct 11, 2018 in DevOps & Agile by lina
• 8,200 points
1,898 views
+5 votes
2 answers

Wildfly Swarm: Specific configuration of the Keycloak Backend environment

I worked on a swarm project which ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by shubham
• 6,910 points
724 views