Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nomad: core refactor and setup #48

Open
5 of 13 tasks
noahehall opened this issue Jan 10, 2023 · 0 comments
Open
5 of 13 tasks

nomad: core refactor and setup #48

noahehall opened this issue Jan 10, 2023 · 0 comments

Comments

@noahehall
Copy link
Contributor

noahehall commented Jan 10, 2023

C

  • complete consul ticket before continuing
  • the core stack now includes vault, haproxy and consul+envoy;
    • bff, ui and postgres are now in a separate stack
    • this separation of platform (core) and web (ui, bff, db) concerns helps drive faster iteration
  • we need to refactor and integrate nomad for orchestration in validation
  • core goals
    • take the output from dev as input to validation
    • validation: execute services on prod like infra
    • push artifacts to nexus for downstream envs

T

  • nomad review: its been awhile
    • nomad notes
    • nomad docs
  • refactor existing nomad logic with intelligence gained from consul ticket
    • directory hierarchy: i think it should be IaC now instead of a nomad dir
    • nomad.sh incorporate new utils dir
    • docker env file: incorporate new .env.auto logic
  • save docker images as tar files so you can use artifact + load instead of running a registry
    • push this to the nexus ticket as that will determine which route we take
  • take another swing at nomad pack it should reduce the amount of inhouse stuff we have to create
    • stay away from levant, no matter how sweet it is
  • integrate nomad with core
  • review nomad resource utilization and update defaults (we were way off in estimates)
  • update aws AMIs to include nomad binary, cni plugins, and post install files
  • think through the interoperability between envs and devise a more efficient management process
    • the initial nomad integration is tiresome, it shouldnt be this way
    • albeit just awhole lotta copypasta and things, this highlights a need for automation/better architecture

A



issue 1: perm
chown: /consul/data: Operation not permitted

we switched the container workdir from /consul to /opt/consul to align with consul web docs
however if you read the consul dockerhub docs it uses /consul and not /opt/consul
solution is to follow the docker hub docs rather than dealing with nomad perm issues at this juncture
a longer term solution is to deal with nomad volume perm issues which doesnt seem as straight forward

issue 2: perm
su-exec: setgroups(994): Operation not permitted

relates to issue 1
finding the root cause of nomad perm issues will likely solve this
and truly resolve issue 1
quick fix: remove `USER consul` from image
@noahehall noahehall added this to nirvai Jan 10, 2023
@noahehall noahehall converted this from a draft issue Jan 10, 2023
@noahehall noahehall changed the title consul integration: connect + orschestration consul integration: connect + orchestration Jan 10, 2023
@noahehall noahehall changed the title consul integration: connect + orchestration consul integration: core + nomad Jan 14, 2023
@noahehall noahehall changed the title consul integration: core + nomad nomad: core refactor and setup Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: SLOW lane
Development

No branches or pull requests

1 participant