Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 21 08:57
    rajibhalder opened #652
  • Jan 18 14:45
    ajit561 edited #651
  • Jan 18 14:43
    ajit561 edited #651
  • Jan 18 14:34
    ajit561 opened #651
  • Jan 14 14:49
    siggouroglou commented #586
  • Jan 08 13:32
    dawnerd commented #643
  • Jan 08 13:00
    nohaapav commented #643
  • Jan 08 12:58
    nohaapav labeled #641
  • Jan 08 12:58
    nohaapav commented #641
  • Jan 08 12:56
    nohaapav labeled #640
  • Jan 08 12:55
    nohaapav labeled #634
  • Jan 08 12:55
    nohaapav labeled #634
  • Jan 08 12:54
    nohaapav labeled #639
  • Jan 08 12:51
    nohaapav closed #650
  • Jan 08 12:51
    nohaapav commented #650
  • Jan 08 09:09
    evokelektrique commented #650
  • Jan 06 20:05
    mckaygerhard commented #650
  • Jan 06 19:59
    mckaygerhard commented #650
  • Jan 06 19:51
    evokelektrique opened #650
  • Jan 06 12:14
    neeweesomu commented #647
Chase Pierce
@syntaqx
Also registry connectivity is my current pain to solve in swarm, so it's super relevant to figure out :)
Pavol Noha
@nohaapav
@syntaqx well you can link your favorite registry into swarmpit with credentials and then you can list registry images when creating service, also if you deploy the stack, docker login is done automatically for you etc .. By linking registry you actually don't care anymore about anything :) Everything regarding authentication is done behind the scene for you
Chase Pierce
@syntaqx
I do like that, but that's also problematic given the infrastructure-as-code reproducability aspect. Has any work been done to make a terraform provider or the like?
I'd be interested in contributing if so/not.
I don't really know much in way of Clojure so there's not much I can really do to contribute to the main project ;)
Pavol Noha
@nohaapav
Yes we have terraform template for AWS with swarmpit :) We'll publish this code soon, as it's unfortunately in other privat e repository now
Chase Pierce
@syntaqx
Fair enough - Yeah that would be huge
Chase Pierce
@syntaqx
Do any of you guys implement devops goodies to deploy your docker swarms? Terraform perhaps? Would love to learn from you on a good way to build out a swarm
Pavol Noha
@nohaapav
Hi Chase, we prepared terraform for some of ours AWS customers .. Currently we're in the process of discussion how to share this know-how and make deployment to cloud "one click" experience :)
Chase Pierce
@syntaqx
Any kind of general idea when you might be able to share that, if you were able to?
Pavol Noha
@nohaapav
First we need to release 1.7, then this one is the priority ..
Chase Pierce
@syntaqx
Fair - Well, if you do get the opportunity to share it soon, it would be massively useful for me with what I'm working on, but I also understand having priorities :)
Chase Pierce
@syntaqx
Anyone have any advice on connecting CircleCI to a swarm cluster so it can perform a rolling update? That, or how do you guys CI your updates?
Pavol Noha
@nohaapav
Swarmpit supports service autoredeploy .. So only thing your CI has to do is to publish new version of docker image to custom registry. If there is a change, swarmpit automatically redeploy service with latest version of image
Chase Pierce
@syntaqx
How does it determine a new image is available?
And, how can I integrate that with notifications so that I can see the service has deployed via slack?
Pavol Noha
@nohaapav
swarmpit remember sha of deployed image .. if sha has changed then new version is out there
Chase Pierce
@syntaqx
I build lots of shas though - I have multiple environments live that are all on different shas
How does it know which is supposed to production?
Pavol Noha
@nohaapav
well i guess that you use prod tag for production deployment
Chase Pierce
@syntaqx
Nope, we use semver
If we didn't it'd be literally impossible for us to have bluegreens, feature releases and rolling smokes
Pavol Noha
@nohaapav
Well how do you know which version is ready for production if your not tagging images ? As you've mentioned you have one version of image across multiple clusters -> no chance to track what is what
just by sha
Chase Pierce
@syntaqx
We are tagging images, we just tag them with SemVer. When a production release is ready, it gets tagged - syntaqx/service:v1.0.0 - That then triggers a Circle build, which builds that docker image
Then, the next deploy would be a different release, and different tag, ie - syntaqx/service:v1.0.1
To know which version is "ready for production" - That happens on build - The image is tagged, Circle can deploy it. Then, for DR , we use GitHub's API to determine what the latest tag is
lumir-mrkva
@lumir-mrkva
@syntaqx have you considered to also tag images for environments (eg. dev, test, production )? then swarmpit would simply keep tagged image on its environment up to date
Chase Pierce
@syntaqx
The problem is we have multiple images in production/staging sometimes though
That's why that doesn't work
A simple example of when this is the case is if we're doing a partial rollout (ie, 10% of users) to see how well a new feature works. - We use multiple version hashes to do this
lumir-mrkva
@lumir-mrkva
so in that case you have basically 2 environments deployed in production?
Chase Pierce
@syntaqx
Indeed
Plus, if you use the same tag for prod, you can't do rollbacks?
lumir-mrkva
@lumir-mrkva
not really
Chase Pierce
@syntaqx
So yeah, that's not ideal, haha
lumir-mrkva
@lumir-mrkva
you would have to tag earlier image as "production"
if you want to trigger deploy on circle ci or any other change in your swarm, you can use swarmpit api
Chase Pierce
@syntaqx
Example? I haven't seen this. Is there docs?
lumir-mrkva
@lumir-mrkva
we don't have really a documentation yet for that, but you can get api token in account settings
just inspect for XHR that frontend does with your change, and you can export it to curl
and change it to your liking
Chase Pierce
@syntaqx
:wave: How goes it friends?
Pavol Noha
@nohaapav
all good man :)
Chase Pierce
@syntaqx
Are you guys using datadog agent by chance to collect logs in your swarms?
I'm trying to figure out what I need to configure for my services to show up correctly
Chase Pierce
@syntaqx
@nohaapav Any update on the terraform provider/api docs? :)
Pavol Noha
@nohaapav
not really ... busy with other work :) We're not using datadog in current setup ..
Chase Pierce
@syntaqx
FeelsBad. Hoping you guys will release stuff soon :(
Any way I can help? :)