Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
vanity slug
Jul 20, 2010

pretty much all of vault's announcements this year have been "we added a feature to our piece of poo poo cloud platform, please give us money"

Adbot
ADBOT LOVES YOU

Sagacity
May 2, 2003
Hopefully my epitaph will be funnier than my custom title.

vanity slug posted:

pretty much all of vault's announcements this year have been "we added a feature to our piece of poo poo cloud platform, please give us money"
ah yes, also known as the "goodfellas approach"

Vulture Culture
Jul 14, 2003

I was never enjoying it. I only eat it for the nutrients.
I wonder how many new Vault customers they're still getting. A lot of people I've been talking to have figured out that after a few years, they aren't using any of its differentiating features at all. Even for hybrid companies, most of the secrets functionality is handled better by something like AWS Secrets Manager.

beuges
Jul 4, 2005
fluffy bunny butterfly broomstick
What's the best way to get Prometheus metrics out of ECS services into Grafana Cloud without using Cloudwatch?

We have a couple of services with auto-scaling rules spread across a couple of clusters. Each task is a .net core web service. I want to expose some custom metrics from these services so we can track a bunch of stats for support. It's easy to scrape the metrics endpoints when there's only one instance of each task running, but if it scales up then I don't know how I'd scrape each distinct container from Grafana Cloud's Prometheus.
Is my best bet to add Grafana Agent to my containers and use remote_write to push the metrics to Prometheus instead of trying to scrape?

As you can probably tell, we are a small dev team who are not at all mature in terms of cloud engineering capabilities.

Extremely Penetrated
Aug 8, 2004
Hail Spwwttag.
We use New Relic instead of Prometheus, but yeah the pattern is to run an OpenTel collector agent as a sidecar to your .NET app's container. That's not the same as installing the agent in your Dockerfile, which I suspect is what you were thinking. AWS has a sample task definition. If you're using Fargate your options are pretty limited and this one is probably the least poo poo.

beuges
Jul 4, 2005
fluffy bunny butterfly broomstick

Extremely Penetrated posted:

We use New Relic instead of Prometheus, but yeah the pattern is to run an OpenTel collector agent as a sidecar to your .NET app's container. That's not the same as installing the agent in your Dockerfile, which I suspect is what you were thinking. AWS has a sample task definition. If you're using Fargate your options are pretty limited and this one is probably the least poo poo.

Thanks, that looks helpful. Yeah we are using fargate, and I was originally looking at installing the agent in my dockerfile… lots more research to do!

Junkiebev
Jan 18, 2002


Feel the progress.

beuges posted:

What's the best way to get Prometheus metrics out of ECS services into Grafana Cloud without using Cloudwatch?

We have a couple of services with auto-scaling rules spread across a couple of clusters. Each task is a .net core web service. I want to expose some custom metrics from these services so we can track a bunch of stats for support. It's easy to scrape the metrics endpoints when there's only one instance of each task running, but if it scales up then I don't know how I'd scrape each distinct container from Grafana Cloud's Prometheus.
Is my best bet to add Grafana Agent to my containers and use remote_write to push the metrics to Prometheus instead of trying to scrape?

As you can probably tell, we are a small dev team who are not at all mature in terms of cloud engineering capabilities.

Do you not use the Prometheus Operator and have a per-cluster prom?

If you do, it’s just a matter of adding a service monitor to your deployment manifests. If you don’t, it’s harder.

Junkiebev
Jan 18, 2002


Feel the progress.

Derp - thought I saw eks there

Hadlock
Nov 9, 2004

What is the pitch the founder of a company wants to hear when doing the final sign off on a new hire

Seems like DevOps is old hat, everyone wants "devX" now as that has greater more measurable impact on developer experience and velocity

Junkiebev
Jan 18, 2002


Feel the progress.

Hadlock posted:

What is the pitch the founder of a company wants to hear when doing the final sign off on a new hire

Seems like DevOps is old hat, everyone wants "devX" now as that has greater more measurable impact on developer experience and velocity

DevX quality is a direct and linear function of how good one’s automation/tooling/platform is/are, and DevOps is responsible for delivering that at scale, in an easily-digestible format.

Call it whatever you want, but that’s the gig (in my view)

MightyBigMinus
Jan 26, 2020

its only devx it if comes from the soma district otherwise its sparkling release engineering

Vulture Culture
Jul 14, 2003

I was never enjoying it. I only eat it for the nutrients.

Hadlock posted:

What is the pitch the founder of a company wants to hear when doing the final sign off on a new hire
Depends on the size of the company, their trajectory towards a scalable product/market fit, broader hiring goals, etc.

Generally, DevOps/releng/DX/whatever is something they explicitly don't care about under a dozen employees or so. In basest terms possible, someone making devs 10% more productive YoY needs to do that 10 times over to earn their salary. Claim much higher than that and you'll butt heads with the piss and vinegar seed round devs who, in their heads, sure aren't working at an early startup because they're low performers

With my last company, I was
a) versatile, and they could give me plenty of stuff to do if there wasn't enough high value ops/RelEng work
b) able to fit into the company-culture needle they were threading
c) a person you'd much rather have and not need just yet than need and not have later

Vulture Culture fucked around with this message at 19:27 on Oct 25, 2023

drunk mutt
Jul 5, 2011

I just think they're neat

Vulture Culture posted:

Depends on the size of the company, their trajectory towards a scalable product/market fit, broader hiring goals, etc.

Generally, DevOps/releng/DX/whatever is something they explicitly don't care about under a dozen employees or so. In basest terms possible, someone making devs 10% more productive YoY needs to do that 10 times over to earn their salary. Claim much higher than that and you'll butt heads with the piss and vinegar seed round devs who, in their heads, sure aren't working at an early startup because they're low performers

With my last company, I was
a) versatile, and they could give me plenty of stuff to do if there wasn't enough high value ops/RelEng work
b) able to fit into the company-culture needle they were threading
c) a person you'd much rather have and not need just yet than need and not have later

At small shops you just get crafty with defining SLO/SLIs and just focus on getting reportable DORA metrics or something similar. A lot of times this is just something stupid simple like making things actually done in a GHA workflow or something stupid simple like that.

It doesn't scale out well, but hopefully you would be altering objectives/indicators as time progresses to be sensible for representing the "DX".

LochNessMonster
Feb 3, 2005

I need about three fitty


Would you go for OpenTofu or stick to Hashicorp Terraform if you had the choice to start a greenfield project today?

The Fool
Oct 16, 2003


"It depends"

If this is for a larger enterprise that is going to care about support contracts, and other enterprise nonsense, I'd still go with terraform

If this is for a startup or a personal project and I'm ok with all the baggage around the open source community, probably tofu

The Fool
Oct 16, 2003


Actually I'd probably stick with the pre-license change version of terraform until things have a chance to shake out a little bit more, you aren't missing anything in 1.6.

Vulture Culture
Jul 14, 2003

I was never enjoying it. I only eat it for the nutrients.
For AWS nowadays, I'd probably just use CDK and sidestep the hybrid cloud nonsense. There's no compelling need to get an entire business caught in this crossfire right now

The Iron Rose
May 12, 2012

:minnie: Cat Army :minnie:
Terraform is good for static long lived infrastructure and not a lot else, which is almost always the least interesting component of your project.

If you can avoid using TF at all, do that. If you have to use it just use terraform. The licensing changes are both reasonable and incredibly minor, opentofu has very little reach and will be significantly less supported going forward, and using it amounts to pointless signalling for a stupid cause while increasing your environment’s risk and complexity.

Vulture Culture
Jul 14, 2003

I was never enjoying it. I only eat it for the nutrients.
Oh, yeah, I forgot. If you want to pick something without big-brand backing right now, look at System Initiative. It's got Adam Jacob from Chef behind it and, while it doesn't fulfill a useful need for me, it seems like it could be really cool for Terraform-type use cases

LochNessMonster
Feb 3, 2005

I need about three fitty


Appreciate the thoughts. It’s for a small department in a large corporate. It’s only for provisioning the base infra layer. Anything application related is done through git and ci/cd pipelines.

I’m not sure why I didn’t think of cdk. I’m comfortable with both tf and cdk. One of the two other people I work with knows cdk but none of them know tf.

Not sure if Pulumi is worth looking into for an env this small.

12 rats tied together
Sep 7, 2006

imho pulumi is strictly an upgrade over the cdk, for the same reasons terraform might be an upgrade over cloudformation, except hcl isn't there to get in the way this time

12 rats tied together
Sep 7, 2006

Vulture Culture posted:

Oh, yeah, I forgot. If you want to pick something without big-brand backing right now, look at System Initiative. It's got Adam Jacob from Chef behind it and, while it doesn't fulfill a useful need for me, it seems like it could be really cool for Terraform-type use cases

this thing owns actually. i might try and pitch OSS version for my team at current job.

thanks for sharing it!

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams
Feeling a little frustrated in my job search as pretty much any job I want is going to involve at least some Kubernetes and Terraform, but my org is so backwards that we don't actually use either of those, so I'm left having to convince them that while I may have only a little exposure now, that I could quickly become an expert if exposed to it.

Docjowles
Apr 9, 2009

Vulture Culture posted:

Oh, yeah, I forgot. If you want to pick something without big-brand backing right now, look at System Initiative. It's got Adam Jacob from Chef behind it and, while it doesn't fulfill a useful need for me, it seems like it could be really cool for Terraform-type use cases

I know they have better things to do right now like develop their product but man that is a weird looking website. It’s in the uncanny valley between modern design and like early 2000s styling

FISHMANPET posted:

Feeling a little frustrated in my job search as pretty much any job I want is going to involve at least some Kubernetes and Terraform, but my org is so backwards that we don't actually use either of those, so I'm left having to convince them that while I may have only a little exposure now, that I could quickly become an expert if exposed to it.

I’ll cop to addressing this issue with some good old fashioned resume driven development early in my career. Puppet and config management were the hot topic and I had zero exposure. So I found a reason to bring it into our company and start hacking on it. Not a bullshit reason, it was a legitimate project solving a real problem that puppet was a good match for. My boss didn’t particularly care about the technology choice so I ran with it.

putin is a cunt
Apr 5, 2007

BOY DO I SURE ENJOY TRASH. THERE'S NOTHING MORE I LOVE THAN TO SIT DOWN IN FRONT OF THE BIG SCREEN AND EAT A BIIIIG STEAMY BOWL OF SHIT. WARNER BROS CAN COME OVER TO MY HOUSE AND ASSFUCK MY MOM WHILE I WATCH AND I WOULD CERTIFY IT FRESH, NO QUESTION
Not sure if this is the best thread for this question, but I'm sure there are a lot of container/docker experts in here so I thought I'd ask.

I'm trying to run a Docker container using the bitnami/wordpress image. If I set up the database on another container using a compose file, the WordPress container happily connects to the database just fine. But if I try to put a remote database host in there it can't connect to it, it's like the container has no internet access. I don't know enough about the networking side of containers to understand what's going on and unfortunately the image has been stripped of any helpful tooling so debugging it is tricky.

What I have done is built a separate container with code inside it that DOES connect to the database just fine, just to validate that it's not some general Docker or database configuration issue, it's something specific to this image.

My suspicion is that maybe this is deliberate as a security feature, and I'm supposed to follow some specific pattern for allowing this remote connection, but I can't find any documentation on it or even any evidence that other people are having this problem.

Trapick
Apr 17, 2006

Do the logs show an attempt to setup that connection? Are you running this locally, in a k8s cluster, in fargate...?

putin is a cunt
Apr 5, 2007

BOY DO I SURE ENJOY TRASH. THERE'S NOTHING MORE I LOVE THAN TO SIT DOWN IN FRONT OF THE BIG SCREEN AND EAT A BIIIIG STEAMY BOWL OF SHIT. WARNER BROS CAN COME OVER TO MY HOUSE AND ASSFUCK MY MOM WHILE I WATCH AND I WOULD CERTIFY IT FRESH, NO QUESTION

Trapick posted:

Do the logs show an attempt to setup that connection? Are you running this locally, in a k8s cluster, in fargate...?

I got it sorted finally. Turns out it wasn't as general as I thought, it did actually have database access it just couldn't connect to THIS database. The answer was setting the env variable WORDPRESS_ENABLE_DATABASE_SSL to "yes", it's "no" by default.

Necronomicon
Jan 18, 2004

I have weird conflicting feelings about how many issues are solved by such a simple solution as switching “no” to “yes” or whatever. But I also just lost my job so I’m especially tuned into the capricious nature of the universe at the moment. Which is really just to say if any of y’all need an AWS/Terraform person, I’m your guy. I’ll probably bump the job seeking thread on Monday but for the time being, oof.

Vulture Culture
Jul 14, 2003

I was never enjoying it. I only eat it for the nutrients.

Docjowles posted:

I know they have better things to do right now like develop their product but man that is a weird looking website. It’s in the uncanny valley between modern design and like early 2000s styling
My understanding is that basically all Rust people are like this, like everything in the Go/Kubernetes ecosystems using Material Design language

FISHMANPET
Mar 3, 2007

Sweet 'N Sour
Can't
Melt
Steel Beams

Docjowles posted:

I’ll cop to addressing this issue with some good old fashioned resume driven development early in my career. Puppet and config management were the hot topic and I had zero exposure. So I found a reason to bring it into our company and start hacking on it. Not a bullshit reason, it was a legitimate project solving a real problem that puppet was a good match for. My boss didn’t particularly care about the technology choice so I ran with it.

I was able to do some TF in a project I was working on, but that project got shutdown and also I got fired, so now I'm left stuck without any opportunity for resume driven development, just coasting on what I've got. Maybe I'm a little salty because I had an interview on Wednesday and then Friday found out I didn't get the job and I felt like it was my lack of Kubernetes and Terraform experience that did me in. I'm also in a weird place with Azure where I'm pretty strong at the particular pieces I've touched but less so on pieces I haven't touched. So I have to convince interviewers that I can pivot the experience I do have into quickly learning whatever specific technologies they need.


Necronomicon posted:

I have weird conflicting feelings about how many issues are solved by such a simple solution as switching “no” to “yes” or whatever. But I also just lost my job so I’m especially tuned into the capricious nature of the universe at the moment. Which is really just to say if any of y’all need an AWS/Terraform person, I’m your guy. I’ll probably bump the job seeking thread on Monday but for the time being, oof.

:sympathy:

LochNessMonster
Feb 3, 2005

I need about three fitty


FISHMANPET posted:

I was able to do some TF in a project I was working on, but that project got shutdown and also I got fired, so now I'm left stuck without any opportunity for resume driven development, just coasting on what I've got. Maybe I'm a little salty because I had an interview on Wednesday and then Friday found out I didn't get the job and I felt like it was my lack of Kubernetes and Terraform experience that did me in. I'm also in a weird place with Azure where I'm pretty strong at the particular pieces I've touched but less so on pieces I haven't touched. So I have to convince interviewers that I can pivot the experience I do have into quickly learning whatever specific technologies they need.

:sympathy:

Cloud is too large to be strong everywhere. As long as you have a few of the most common services covered you’re probably good for most of the jobs you’re aiming for.

If you want to get better at k8s, get the Kodekloud courses on udemy, they come with lab environments and are completely worth it for that alone. Besides that they also happen to be the best entry level k8s courses I’ve encountered. 12-15 bucks and doing ckad amd cka will get you enough knowledge to talk ablut during interviews.

As for TF, I think Andrew Brown just did an entry level course which he’s going to post on freecodecamp. No personal experience but I heard he puts out great content.

putin is a cunt
Apr 5, 2007

BOY DO I SURE ENJOY TRASH. THERE'S NOTHING MORE I LOVE THAN TO SIT DOWN IN FRONT OF THE BIG SCREEN AND EAT A BIIIIG STEAMY BOWL OF SHIT. WARNER BROS CAN COME OVER TO MY HOUSE AND ASSFUCK MY MOM WHILE I WATCH AND I WOULD CERTIFY IT FRESH, NO QUESTION

Necronomicon posted:

I have weird conflicting feelings about how many issues are solved by such a simple solution as switching “no” to “yes” or whatever. But I also just lost my job so I’m especially tuned into the capricious nature of the universe at the moment. Which is really just to say if any of y’all need an AWS/Terraform person, I’m your guy. I’ll probably bump the job seeking thread on Monday but for the time being, oof.

It can be very frustrating! Especially on images with no tooling to actually interrogate the state of the container. But on the other hand it was such a relief to get the problem solved with such a simple solution even if it did take an annoying amount of digging to get there.

As for the rest of your post, sorry to hear that, friend. I'm assuming you're in the US, but if you're in Melb I can maybe help?

putin is a cunt fucked around with this message at 10:30 on Oct 31, 2023

Necronomicon
Jan 18, 2004

putin is a oval office posted:

As for the rest of your post, sorry to hear that, friend. I'm assuming you're in the US, but if you're in Melb I can maybe help?

Yeah, I'm in Massachusetts, about two hours west of Boston. I appreciate it though.

xzzy
Mar 5, 2009

I'm trying to get less dumb so I set up a kubernetes cluster on some spare hardware at home so I can get a better understanding of how it works internally. After much flailing around I got all the basics working, ingress works from any machine on my lan and I can access my hello world destination. So setup done.

But one thing that I absolutely could not figure out was haproxy as the ingress controller. I could talk to haproxy, get its status page and get a 404 error trying to hit 80 or 443. But no matter what I tried I could not get it to proxy to my hello world echo server. I did find a note at the bottom of some random article that haproxy has issues if you don't install with helm which I did not use.. I downloaded the yaml manifest and applied it myself.

Does that sound plausible? Or am I just bad at writing yaml?

nginx worked first try with zero issues.

The Iron Rose
May 12, 2012

:minnie: Cat Army :minnie:
helm is just a means to template, apply, and rollback yaml files at the end of the day. There’s nothing magical about using it, but it tends to be the tool de jour for third party apps since someone other than you gets to maintain the manifest files.

xzzy
Mar 5, 2009

That's kind of why I avoided helm in this case, I didn't want to be shielded from the nuts and bolts since this is all educational.

Next time I'm puttering I'll try haproxy with helm and see if I get different results, in the meantime I figured I'd ask around.

Hadlock
Nov 9, 2004

Kubernetes is moving away from ingress controllers

Unless you have a very specific reason, stick with the nginx ingress controller

xzzy
Mar 5, 2009

You talking about the availability of the gateway api? I'll definitely play around with that next but I assume it's gonna be years before ingress is is gone.

Vulture Culture
Jul 14, 2003

I was never enjoying it. I only eat it for the nutrients.

xzzy posted:

You talking about the availability of the gateway api? I'll definitely play around with that next but I assume it's gonna be years before ingress is is gone.
There's no plan to deprecate the Ingress APIs even being talked about. The removal of Ingress v1beta1 for v1, a relatively easy change and painless migration if you weren't stuck on unmaintained charts, had two entire years between the 1.19 and 1.22 releases. There's zero chance Ingress stops being supported before 2030.

Look at Gateway seriously if you're using service mesh. Ingress is fine and will continue to be fine for exposing cluster services on the network.

Adbot
ADBOT LOVES YOU

The Iron Rose
May 12, 2012

:minnie: Cat Army :minnie:
I need to manage kubernetes minor version updates (I.e. 1.27-1.28) across 3 clouds and 60 k8s clusters. somewhat to my surprise, it seems like nobody has built a tool to do this. Both GCP and Azure have auto updates, but AWS EKS does not. Doing this all in terraform sucks regardless.

I basically want to:
- take as input a target minor version
- check for deprecated APIs in use using an existing tool like kubent
- identify the latest available patch version for the target minor version (handles both patch upgrades and minor version upgrades)
- update any EKS addons (AWS clusters only)
- update the control plane
- update one node pool at a time if an update isn’t ongoing.

My initial thought was to just do this all in gitlab CI, but since node pool updates can take hours or days the orchestration got ugly fairly quickly.

Accordingly, I’m leaning towards writing my own service to handle this. I’ll probably just use a lambda function or three and use dynamodb to store the couple bits of state I need on the cheap.

Before I do though, am I reinventing the wheel here?

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply