#atlantis - September 2019

atlantisArchived
36 messages

Discuss the Atlantis (runatlantis.io)
Archive: https://archive.sweetops.com/atlantis/

September 2019
Callum Robertson
Callum Robertsonabout 7 years ago
Have you used this much @Igor?
Callum Robertson
Callum Robertsonabout 7 years ago
I'm curious to know how it plays out
Igor
Igorabout 7 years ago
No, not at all, I am also curious about it
Igor
Igorabout 7 years ago
Sticking to Atlantis for the time being
Callum Robertson
Callum Robertsonabout 7 years ago
OK! I'll set one up next week and give it a crack
Callum Robertson
Callum Robertsonabout 7 years ago
yeah - same here.
Igor
Igorabout 7 years ago
Mostly because we don’t use workspaces
Igor
Igorabout 7 years ago
And I’m afraid Hashicorp is pushing for workspaces
Callum Robertson
Callum Robertsonabout 7 years ago
Yeah - I feel the same, I too am not using workspaces, I'm using the terragrunt/atlantis method
Callum Robertson
Callum Robertsonabout 7 years ago
I'm doing a talk on Atlantis here in NZ and Hashicorp where pushing their enterprise tools our way to present 😛
Igor
Igorabout 7 years ago
IIRC The guys that managed Atlantis were hired by Hashicorp, so I am sure there is a lot of influence that they'll have on their Terraform Cloud product
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)about 7 years ago
But Atlantis the project is also pushing workspaces :-)
Igor
Igorabout 7 years ago
Atlantis config has built-in support for custom commands though
Igor
Igorabout 7 years ago
Whereas workspaces appear mandatory in the Terraform Cloud world (on first sight)
Igor
Igorabout 7 years ago
They also demo having environment-specific git branches, which doesn't make any sense to me
Igor
Igorabout 7 years ago
(unless it's a short-lived environment)
Jakub Korzeniowski
Jakub Korzeniowskiabout 7 years ago
Hi Guys. I'm getting atlantis to execute helmfile workflow. I created a docker image based on the official atlantis' image with all of the necessary goodies that are needed and bizarre things happen:

If I docker run -it my_atlantis /bin/bash and run helm help it lists all the commands including the plugins.

However, if I run the same command as part of a custom atlantis' workflow, none of the plugins are there.

Any ideas?
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 7 years ago
@Jakub Korzeniowski are you running the same image for the atlantis workflow?
zeid
zeidabout 7 years ago
doesn't the atlantis image have a "atlantis" user? If so, you would need to install the plugins for the atlantis user
zeid
zeidabout 7 years ago(edited)
you can create a directory for helm and set the HELM_HOME env variable to that
zeid
zeidabout 7 years ago
then install the helm plugins
zeid
zeidabout 7 years ago
don't forget to set the permissions on the dir
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 7 years ago
this is an example of our image with atlantis installed (geodesic is the base image, which has terraform, helm, helfile and other stuff installed)
https://github.com/cloudposse/testing.cloudposse.co/blob/master/Dockerfile

this is how the atlantis server gets configured in the base geodesic image
https://github.com/cloudposse/geodesic/blob/master/rootfs/etc/init.d/atlantis.sh

atlantis worflows
https://github.com/cloudposse/testing.cloudposse.co/blob/master/atlantis.yaml
zeid
zeidabout 7 years ago
curious how well it works to use atlantis with helm/helmfile
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 7 years ago
works well for us
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 7 years ago(edited)
this is an example of atlantis workflow for helmfiles:
helmfile:
    plan:
      steps:
        - run: "chamber exec kops -- kops export kubecfg"
        - run: 'chamber exec kops -- direnv exec "$DIR" helmfile diff --suppress-secrets --args="--allow-unreleased --context 5 --no-color"
    apply:
      steps:
        - run: "chamber exec kops -- kops export kubecfg"
        - run: 'test -x "$DIR"/namespace-annotations.sh && chamber exec kops -- direnv exec "$DIR" "$DIR"/namespace-annotations.sh || echo "No script found to annotate namespaces"'
        - run: 'chamber exec kops -- direnv exec "$DIR" helmfile apply --suppress-secrets'
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 7 years ago(edited)
and this is atlantis project config to deploy helmfiles
 - name: "helmfiles"
    workflow: "helmfile"
    dir: "conf/helmfiles"
    workspace: "default"
    autoplan:
      when_modified:
        - "*.yaml"
        - "*.yaml.gotmpl"
        - "*.envrc"
        - ".envrc"
      enabled: true
    apply_requirements:
      - "approved"
zeid
zeidabout 7 years ago
that's awesome
zeid
zeidabout 7 years ago
I've been looking at ArgoCD for doing the k8s CD, any thoughts on that project?
zeid
zeidabout 7 years ago
i have yet to try it out , just reading up on it
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 7 years ago
did not use it, but looks very cool 🙂
Andriy Knysh (Cloud Posse)
Andriy Knysh (Cloud Posse)about 7 years ago(edited)
zeid
zeidabout 7 years ago
we use Azure DevOps which is what GithHub Actions is built on, but I'm trying to move away from having our CI systems from talking to our K8s clusters directly
zeid
zeidabout 7 years ago
which is why I like Atlantis and ArgoCD
zeid
zeidabout 7 years ago
I can run those within our network