#office-hours (2021-02)
“Office Hours” are every Wednesday at 11:30 PST via Zoom. It’s open to everyone. Ask questions related to DevOps & Cloud and get answers! https://cloudposse.com/office-hours
Public “Office Hours” are held every Wednesday at 11:30 PST via Zoom. It’s open to everyone. Ask questions related to DevOps & Cloud and get answers!
https://cpco.io/slack-office-hours
Meeting password: sweetops
2021-02-03

@here office hours is starting in 30 minutes! Remember to post your questions here.

Kubernetes provider, unauthorized
issue.
Sometimes kubernetes provider gives “unauthorized” error, causing the pipe line stop and exit. The problem happens randomly. The issue is discussed here.
https://github.com/terraform-aws-modules/terraform-aws-eks/issues/911#issuecomment-761715025
The root cause of the problem seems to be the too short validation period of the token, which is 15 minutes. Some times EKS creation times, exceed 15 minutes which invalidates the token.
I solved the problem using a dirty hack again with TG, using aws client tool in before hook.
Vlaad claims he solved the problem using Kubernetes provider 2.0 https://github.com/terraform-aws-modules/terraform-aws-eks/issues/911#issuecomment-771583572

@Vlad Ionescu (he/him)

Yup. Gimme 5 and I’ll join office hours

My above comment is in regards to the localhost
issue, not the unauthorized
one. I have no idea if using the v2 terrafrom-provider-kubernetes
fixes the auth issue too or not. https://github.com/hashicorp/terraform-provider-kubernetes/issues/918 is still open so
Something to test!
Terraform Version and Provider Version Terraform v0.12.26 provider.archive v1.3.0 provider.aws v2.70.0 provider.helm v1.2.3 provider.kubernetes v1.11.3 provider.null v2.1.2 Affected Resource(s) kub…

Erik Osterman (Cloud Posse) has joined Public “Office Hours”

Andrew Thompson has joined Public “Office Hours”

Tarlan Isaev has joined Public “Office Hours”

Florain Drescher has joined Public “Office Hours”

Andy Miguel (Cloud Posse) has joined Public “Office Hours”

Renée Leia has joined Public “Office Hours”

mb Branski has joined Public “Office Hours”

de la Torre Nicolás has joined Public “Office Hours”

Bruce Messick has joined Public “Office Hours”

venkatamutyala has joined Public “Office Hours”

Jeremy (Cloud Posse) has joined Public “Office Hours”

Patrick Jahns has joined Public “Office Hours”

mike dizon has joined Public “Office Hours”

Evan Pitstick has joined Public “Office Hours”

Matt Calhoun has joined Public “Office Hours”

Adrian Wnuk has joined Public “Office Hours”

Andrey Nazarov has joined Public “Office Hours”

Mahmoud Dolah has joined Public “Office Hours”

Mohammed Yahya has joined Public “Office Hours”

Tim Gourley has joined Public “Office Hours”

Eric Berg has joined Public “Office Hours”

Adam Crown has joined Public “Office Hours”

Matt Gowie has joined Public “Office Hours”

15139103984 has joined Public “Office Hours”

ASIS SETHI has joined Public “Office Hours”

mvensky has joined Public “Office Hours”

Joaquin Menchaca has joined Public “Office Hours”

David Lundgren has joined Public “Office Hours”

Andrew Thompson has joined Public “Office Hours”

Brandon vh has joined Public “Office Hours”

James Haughey has joined Public “Office Hours”

Julian Severino has joined Public “Office Hours”

KALYAN ALAMURU has joined Public “Office Hours”

Udit Dave has joined Public “Office Hours”

John Mitchell has joined Public “Office Hours”

Dennis Lipovsky has joined Public “Office Hours”

PePe Amengual has joined Public “Office Hours”

emem umoh has joined Public “Office Hours”

Vicken Simonian has joined Public “Office Hours”

Phil Sautter has joined Public “Office Hours”

Andy Roth has joined Public “Office Hours”

Kareem Shahin has joined Public “Office Hours”

Vlad Ionescu has joined Public “Office Hours”

Michael Jenkins has joined Public “Office Hours”

Imran Hussain has joined Public “Office Hours”

I like this attitude that dev and staging are also production, but for different users! Two thumbs up!

Oskar Maria Grande has joined Public “Office Hours”

Sony Francis has joined Public “Office Hours”


Yagni (“You Aren’t Gonna Need It”) is the principle that we should not build presumptive features. It should not be used as a justification for neglecting internal quality.

@Mohammed Yahya do you have a link to the flag you where referring to?

Main usage information for the Terraform CLI tool.

@Erik Osterman (Cloud Posse) ^^

makefile example:
init:
@echo $(ORANGE)"==> TF Init"
@terraform -chdir=$(DIR) init
upgrade:
@echo $(ORANGE)"==> TF Upgrade"
@terraform -chdir=$(DIR) init -upgrade=true
validate:
@echo $(ORANGE)"==> TF Validate"
@terraform -chdir=$(DIR) validate
plan:
@echo $(ORANGE)"==> TF Plan"
@terraform -chdir=$(DIR) plan
apply:
@echo $(RED)"==> TF Apply"
@terraform -chdir=$(DIR) apply -auto-approve

thanks!!

“You aren’t gonna need it” (YAGNI) is a principle of extreme programming (XP) that states a programmer should not add functionality until deemed necessary. XP co-founder Ron Jeffries has written: “Always implement things when you actually need them, never when you just foresee that you need them.” Other forms of the phrase include “You aren’t going to need it” and “You ain’t gonna need it”.

rajiv ranjan has joined Public “Office Hours”


[Title text] “Fortunately, the charging one has been solved now that we’ve all standardized on mini-USB. Or is it micro-USB? Shit.”

Declarative, Go-embeddable, and cross-platform package manager powered by https://gofi.sh/ - mumoshu/shoal

Akshay Jain has joined Public “Office Hours”


Building continuous deployment pipelines that scale into Kubernetes? Harness equips you with the tools you need in order to ensure flawless K8s deployments.

Andrew Thompson has joined Public “Office Hours”

New Zoom Recording from our Office Hours session on 2021-02-03 is now available.
2021-02-06

Hey guys, maybe you already discussed this here. But what you guys thing about this blog post: https://codefresh.io/kubernetes-tutorial/kubernetes-antipatterns-1/ specific about the 4th pattern, Mixing application deployment with infrastructure deployment
I am facing a similar concern with ECS were, I am adding 2 workflows in Github Actions, one for build and deploy the app, and another one for app-specific infra, like ECR or ECR task definition and service. My issue is to improve how we deal with race conditions, like ECR is not created yet and the app is being deployed. How do you guys deal with it?
2021-02-09

well that’s nifty, tailscale has a community terraform provider already… https://registry.terraform.io/providers/davidsbond/tailscale/latest/docs
2021-02-10

@here office hours is starting in 30 minutes! Remember to post your questions here.

Wow.. can I attend? (and, if yes, how?)

Go to https://cloudposse.com/office-hours to register and get the zoom link

Done, thanks

Hi~ Anyone have experience/recommendation keeping your Terraform code DRY? Like how Terragrunt does it, but using Terraform Cloud, Scalr, or Spacelift? We have a few environments we “promote” infrastructure changes to (dev –> test –> prod) and would like get away from “copying” the same terraform code/modules . I notice env0 has support for terragrunt, but want to know what others have done
TIA!

Erik Osterman (Cloud Posse) has joined Public “Office Hours”

Andrew L has joined Public “Office Hours”

Andy Roth has joined Public “Office Hours”

Vlad Ionescu has joined Public “Office Hours”

mb Branski has joined Public “Office Hours”

Andy Miguel (Cloud Posse) has joined Public “Office Hours”

Mohammed Yahya has joined Public “Office Hours”

Dustin Van Buskirk has joined Public “Office Hours”

Renée Leia has joined Public “Office Hours”

Kostis Kapelonis has joined Public “Office Hours”

Matteo Migliaccio has joined Public “Office Hours”

Patrick Joyce has joined Public “Office Hours”

Colton Wrisner has joined Public “Office Hours”

Ian Groff has joined Public “Office Hours”

Maycon Santos has joined Public “Office Hours”

Oliver Schoenborn has joined Public “Office Hours”

Sam C has joined Public “Office Hours”

Kristopher Flint has joined Public “Office Hours”

Jeremy Branham has joined Public “Office Hours”

Florain Drescher has joined Public “Office Hours”

ASIS SETHI has joined Public “Office Hours”

Matt Calhoun has joined Public “Office Hours”

Bill Clark has joined Public “Office Hours”

Michael Londeen has joined Public “Office Hours”

Tim Gourley has joined Public “Office Hours”

James Haughey has joined Public “Office Hours”

Leo Zavala has joined Public “Office Hours”

Imran Hussain has joined Public “Office Hours”

Michael Jenkins has joined Public “Office Hours”

15139103984 has joined Public “Office Hours”

Jeremy (Cloud Posse) has joined Public “Office Hours”

Zachary Loeber has joined Public “Office Hours”

Sheldon Hull has joined Public “Office Hours”

ASIS SETHI has joined Public “Office Hours”

Julian Severino has joined Public “Office Hours”

emem umoh has joined Public “Office Hours”

Manish Sawlani has joined Public “Office Hours”

PePe Amengual has joined Public “Office Hours”

Andrew Thompson has joined Public “Office Hours”

Udit Dave has joined Public “Office Hours”

Patrick Jahns has joined Public “Office Hours”

Pablo Costa has joined Public “Office Hours”

Andrey Nazarov has joined Public “Office Hours”

David Lozano has joined Public “Office Hours”

Agree with @Mohammed Yahya . It was super cool concept, but it abstracts so much away you have to trust it as is, but once you start untangling all the cloudformation it was a bit concerning. Good for adhoc work/poc, but “devops” folks isn’t not for them imo

Mind me asking what this was related to - I totally forgot it again

AWS Copilot

Pretty cool to try but it took control of so much behind the scenes if the layout/template didn’t fit or needed tweaking it was imo harder than perhaps a good terraform module as the starting point (with a higher infra-as-code bar of entry required to build that of course)

AWS for GitHub Actions has 11 repositories available. Follow their code on GitHub.

Run a AWS CodeBuild project as a step in a GitHub Actions workflow job. - aws-actions/aws-codebuild-run-build

Terraform module to provision Auto Scaling Group and Launch Template on AWS - cloudposse/terraform-aws-ec2-autoscale-group

Oliver Schoenborn has joined Public “Office Hours”

Blaise Pabon has joined Public “Office Hours”

Community Note Please vote on this issue by adding a reaction to the original issue to help the community and maintainers prioritize this request Please do not leave "+1" or other comme…

Oskar Maria Grande has joined Public “Office Hours”

Petros Kolyvas has joined Public “Office Hours”

Dennis Lipovsky has joined Public “Office Hours”

Oskar Maria Grande has joined Public “Office Hours”

In our previous guide, we documented 10 Docker anti-patterns. This guide has been very popular as it can help you in your first steps with container images. Creating container images for your application, however, is only half the story. You still need a way to deploy these containers in production, and the de facto solution … Continued

mb Branski has joined Public “Office Hours”

Brandon vh has joined Public “Office Hours”

New Zoom Recording from our Office Hours session on 2021-02-10 is now available.
2021-02-11

Updated diagram:
2021-02-12

I’d like to spend 5 minutes next office hours discussing the merits of INVEST and taking the audience’s temperature on how they feel about it

INVEST stands for a set of criteria used to assess the quality of a user story. If the story fails to meet one of these criteria, the team may reword it.

@roth.andy this is a good way to evaluate how well a story was articulated. I’ve written tons of these for infrastructure teams and the best outcomes are always when it’s a collaborative process with the engineers doing the work. having a good template (e.g. what, why, etc. etc.) that drives the right conversation definitely helps makes that magic happen.

INVEST stands for a set of criteria used to assess the quality of a user story. If the story fails to meet one of these criteria, the team may reword it.
2021-02-15
2021-02-17

@here office hours is starting in 30 minutes! Remember to post your questions here.

Hello guys, this might have been asked before, but what criteria do you guys use when evaluating if something needs to be created as a module?
I recently joined a company with 6 cloud engineers that have been discussing about maturing their terraform deployment, and modules have been brought up. The -legacy- engineers wanted to create a module for everything, even simple ones. For example, azure resource groups, and the arguments were:
- Takes me 10 mins to write it anyway
- I can make it accept a comma-delimited name, and it creates multiple resource groups for me
- If you want to create 1 resource group, the module can handle it anyway
- I can ask for required tags on the resource groups, and I’m sure we’re going to need something else on those resource groups in the future
Our goal is to eventually allow our app dev teams to create their terraform code to deploy their infrastructure for their apps. They originally managed the deployment by creating standalone deployments for each resources - like 1 deployment for resource group, 1 for SQL PaaS, 1 for storage account - all separate repositories and “pipeline”. We would like to move to more application-based repositories that contains all the terraform code/infrastructure needed for the said application (shared services infrastructure like AKS will be separately managed)
I feel this is a case of over engineering/YAGNI, but being new, I may be biased. I don’t feel simple/standalone terraform resources should have another wrapper on top of it (module). Is there a compelling reason why this pattern can bite us in the future (aka very bad idea)?

Extension for Visual Studio Code - Find and fix misconfigurations in infrastructure-as-code manifests like Terraform, Kubernetes, Cloudformation, Serverless framework, Arm templates using Checkov - static analysis for infrastructure as code .

Jaime Salcedo has joined Public “Office Hours”

Erik Osterman (Cloud Posse) has joined Public “Office Hours”

Vladimir Andreev has joined Public “Office Hours”

Matteo Migliaccio has joined Public “Office Hours”

Emile Fugulin has joined Public “Office Hours”

Zadkiel has joined Public “Office Hours”

Michael Jenkins has joined Public “Office Hours”

Victor Xu has joined Public “Office Hours”

Gabriel Boie has joined Public “Office Hours”

Andy Miguel (Cloud Posse) has joined Public “Office Hours”

Andrew Thompson has joined Public “Office Hours”

Florain Drescher has joined Public “Office Hours”

Mohammed Yahya has joined Public “Office Hours”

David Lozano has joined Public “Office Hours”

mb Branski has joined Public “Office Hours”

Andrey Nazarov has joined Public “Office Hours”

Zachary Loeber has joined Public “Office Hours”

Andy Roth has joined Public “Office Hours”

Alexander Agent has joined Public “Office Hours”

mb Branski has joined Public “Office Hours”

James Haughey has joined Public “Office Hours”

Alexander Agent has joined Public “Office Hours”

Cloud Posse is a DevOps Accelerator that helps companies own their infrastructure in record time by building it with you and then showing you the ropes. Everything we do is 100% Open Source under A…

Michael Sew has joined Public “Office Hours”

Joe Hosteny has joined Public “Office Hours”

Tim Gourley has joined Public “Office Hours”

Rodrigo Quezada has joined Public “Office Hours”

15139103984 has joined Public “Office Hours”

Neil Gealy has joined Public “Office Hours”

Zachary Loeber has joined Public “Office Hours”

Joaquin Menchaca has joined Public “Office Hours”

Matt Gowie has joined Public “Office Hours”

Jeremy (Cloud Posse) has joined Public “Office Hours”

Robert Jackson has joined Public “Office Hours”

ASIS SETHI has joined Public “Office Hours”

Luis Masaya has joined Public “Office Hours”

@Andy Miguel could you please share your article? I think I’ve already read it. But I want to check it out again.

I don’t care what work management framework your team or company claims to use, making software will still be hard. Supporting those software teams is even harder. Good frameworks can definitely help you manage and deliver your work, but no system in the world can make a difference if people don’t follow the program. This… Read More »Why is it hard to manage work for DevOps teams?


Oskar Maria Grande has joined Public “Office Hours”

mb Branski has joined Public “Office Hours”

cody halovich has joined Public “Office Hours”

Bruno Chauvet has joined Public “Office Hours”

Mahmoud Dolah has joined Public “Office Hours”

tamsky has joined Public “Office Hours”

Michael Bottoms has joined Public “Office Hours”

Jay Zalowitz has joined Public “Office Hours”


@Erik Osterman (Cloud Posse) I’m losing faith https://github.com/awslabs/tecli
In a world where everything is Terraform, teams use Terraform Cloud API to manage their workloads. TECLI increases teams productivity by facilitating such interaction and by providing easy commands…

Vicken Simonian has joined Public “Office Hours”

what secret/keys management system you prefer to use?

Don’t know if this been reviewed previously but I came across this last week and its pretty cool at visualizing AWS resources: https://github.com/duo-labs/cloudmapper
CloudMapper helps you analyze your Amazon Web Services (AWS) environments. - duo-labs/cloudmapper

How can one use terraform for marketplace with Azure, Google Cloud, AWS? I want to deploy distributed database (k8s or no k8s). AWS requires CFN for this. But I don’t know about Azure and GCP.

Tim Gourley has joined Public “Office Hours”

HOW WE’RE DIFFERENT User VPN Designed for the Cloud Centrally-Managed VPN Visibility of all users, their connection history and all certificates across your network. Many Authentication Options LDAP/AD, DUO, Okta, MFA, Client SAML and other integrations. Profile-Based Access Control Answers “who can access what VPC?” Each VPN user can be assigned to a profile…

https://github.com/masterpointio/terraform-aws-client-vpn — I forked an AWS Client VPN module to make it a bit more friendly and then used this for a client. I’m still not a fan of VPNs though.
This terraform module installs a client VPN. Contribute to masterpointio/terraform-aws-client-vpn development by creating an account on GitHub.

@Erik Osterman (Cloud Posse) if you ever want to move this to a cloudposse module , I’d be happy to donate it + move it when I’ve got some more time. It already using context.tf and would fit well in the library — just needs a bit of cleanup as I did it somewhat rushed for client.
This terraform module installs a client VPN. Contribute to masterpointio/terraform-aws-client-vpn development by creating an account on GitHub.




We’re shipping the Boundary Desktop alpha today! Boundary continues to get better week by week. Its already pretty great but in a couple years this thing is going to be amazing. https://www.boundaryproject.io/docs/api-clients/desktop https://pbs.twimg.com/media/Euc_80tXcAA1ZeW.jpg

Timely tweet

Office hours still going?

New Zoom Recording from our Office Hours session on 2021-02-17 is now available.
2021-02-24

@here office hours is starting in 30 minutes! Remember to post your questions here.

is there a standard way of “injecting” a template into helm charts before it’s parsed with helmfile? Can the kustomize features of helmfile use helpers defined in the chart?


Question: AWS CDK- What are your thoughts, especially if you’ve used any pattern-based code like https://github.com/cdk-patterns?tab=repositories for example (there are others).
Background: I recently tried to use CDK for a container project using some pattern-based code and found it difficult to wedge the code into a mold that fit my application (ports to the container on LB target groups along with heath checks, for example)
This is a place to store/share AWS Serverless architectures built with cdk - cdk-patterns

Erik Osterman (Cloud Posse) has joined Public “Office Hours”

Michael Jenkins has joined Public “Office Hours”

Andy Roth has joined Public “Office Hours”

Colton Wrisner has joined Public “Office Hours”

Pierre Humberdroz has joined Public “Office Hours”

Vladimir Andreev has joined Public “Office Hours”

Evan Pitstick has joined Public “Office Hours”

Brandon vh has joined Public “Office Hours”

Omer Sen has joined Public “Office Hours”

Andrew L has joined Public “Office Hours”

Andy Miguel (Cloud Posse) has joined Public “Office Hours”

Florain Drescher has joined Public “Office Hours”

PePe Amengual has joined Public “Office Hours”

mb Branski has joined Public “Office Hours”

Matteo Migliaccio has joined Public “Office Hours”

David Lozano has joined Public “Office Hours”

Leo Zavala has joined Public “Office Hours”

Aleksandr Fofanov has joined Public “Office Hours”

Mohammed Yahya has joined Public “Office Hours”

Omer Sen has joined Public “Office Hours”

Imran Hussain has joined Public “Office Hours”

Matt Calhoun has joined Public “Office Hours”

Nigel Kirby has joined Public “Office Hours”

Tim Gourley has joined Public “Office Hours”

Salvatore has joined Public “Office Hours”

15138278650 has joined Public “Office Hours”

Eric Berg has joined Public “Office Hours”

Oliver Schoenborn has joined Public “Office Hours”

Neil Gealy has joined Public “Office Hours”

Eric Berg has joined Public “Office Hours”

Jeremy (Cloud Posse) has joined Public “Office Hours”

Michael Sew has joined Public “Office Hours”

Eric Berg has joined Public “Office Hours”

venkatamutyala has joined Public “Office Hours”

Jim G has joined Public “Office Hours”

Matt Gowie has joined Public “Office Hours”

Zachary Loeber has joined Public “Office Hours”

Question: what is the best place to propose a change to HCL2 language like: make enabling/disabling a resource/module a fist-class citizen in the language; eg a boolean metavariable called enabled
so we’re not stuck with the count
metavariable hack

HCL is the HashiCorp configuration language. Contribute to hashicorp/hcl development by creating an account on GitHub.

Thanks I raised an issue there I’ll see what kind of response I get

The notion of "nullness" or "existence" must be first class in a language, and the language should minimize how much "how" the user needs to express. Currently in orde…

yep that’s the one I raised

Patrick Joyce has joined Public “Office Hours”

Harold R has joined Public “Office Hours”

Luis Masaya has joined Public “Office Hours”

Zachary Loeber has joined Public “Office Hours”

Adam Crown has joined Public “Office Hours”

links from today’s announcements:
HashiCorp Prototype for Terraform Module Acceptance Terraform Testing See docs, and requires 0.15+ (alpha) https://github.com/hashicorp/terraform/pull/27873 https://github.com/hashicorp/terraform/pull/27873/files#diff-dd1cafe2a571c5e9f7b56d4d821e882c22d32b99f39260f53bd4e274b3550615
Terraform 0.15+ is shipping with support for undeclared variables values, but without the deprecation notice. https://github.com/hashicorp/terraform/issues/22004#issuecomment-783757089
Atlantis 0.17.0-beta shipped with basic support for OPA https://github.com/runatlantis/atlantis/releases/tag/v0.17.0-beta
Sponsor Cloud Posse / SweetOps / Office Hours for $1 / mo https://github.com/sponsors/cloudposse
Check out last week’s office hours on YouTube! https://www.youtube.com/c/cloudposse

Joaquin Menchaca has joined Public “Office Hours”

Mahmoud Dolah has joined Public “Office Hours”

I have question about using kustomize in helmfile

Denys has joined Public “Office Hours”

Deploy Kubernetes Helm Charts. Contribute to roboll/helmfile development by creating an account on GitHub.

Small utility that will convert K8s YAML files to a values.yaml file capable of being used with the incubator/raw helm chart - RothAndrew/convert-to-helm-raw-values

Istio 1.9 release announcement.

Interacting with a subchart’s and global values.

Blaisep has joined Public “Office Hours”

ASIS SETHI has joined Public “Office Hours”

what are the pros and cons of using k8 over aws ECS and what are the differences when managing k8 with or without helm charts. are helm charts to pure k8 yaml the same that cloudposse tf modules are to creating plain hcl files with tf resources directly? is that an accurate comparison?

I had k8s question: what’s difference between pvc sotrageClassName
or the annotation specifying storage-class
, e.g. [volume.beta.kubernetes.io/storage-class](http://volume.beta.kubernetes.io/storage-class)

I just found my own answer, took some digging.

Blaisep has joined Public “Office Hours”

Denys has joined Public “Office Hours”

v0.15.0-beta1 Version 0.15.0-beta1

hashcorp was a bit slower with their release this week! missed the 11:30am PT cut off

2021-02-25

Was referred here, for this question. I have been looking for a CI/CD pipeline solution for terraform changes. But i do use TG, and would be willing to switch so there are more options. It seems like https://github.com/cloudposse/terraform-provider-utils#examples, can solve the problem of the simplicity in TG to go up two levels for .hcl files. One thing i make a ton of use out of is path_relative_to_include
, this both allows me to set a single remote state at the top of every VPC (using aws) with key = "prod/${path_relative_to_include()}/terraform.tfstate"
. I have also been making use of the file system to drill into my yaml files, nodes and directories align (the merits of this could be argued), doing…
inputs = {
servers = local.servers[path_relative_to_include()]["servers"]
}
I’m more interested how you guys get around redefining the state file for each directory. I realize terragrunt can run multiple levels, but that’s really not a draw for me.
Thanks!
The Cloud Posse Terraform Provider for various utilities (E.g. deep merging) - cloudposse/terraform-provider-utils
2021-02-26

Im going to cross post my #kubernetes question here. I’m quite sure someone already did it
I’m wondering if there are already some solutions for disaster recovery active-active K8S clusters where traffic can be partially switched and security is as granular to a pod level. I saw this https://portworx.com/kubernetes-disaster-recovery/ but not sure. Maybe some used anything like and can share some insights
https://sweetops.slack.com/archives/CBW699XE0/p1614342312005100

WHITEPAPER Get the Essential Capabilities of Disaster Recovery for Kubernetes ‣ The Challenge Building an enterprise grade Kubernetes platform entails more than simply deploying your applications. You need to protect them too. However, traditional DR solutions aren’t a fit for Kubernetes applications because they rely on machine-based backups and don’t speak the language of Kubernetes.learn more
I’m wondering if there are already some solutions for disaster recovery active-active K8S clusters where traffic can be partially switched and security is as granular to a pod level. I saw this https://portworx.com/kubernetes-disaster-recovery/ but not sure. Maybe some used anything like and can share some insights

is that a Kubernetes concern ?

WHITEPAPER Get the Essential Capabilities of Disaster Recovery for Kubernetes ‣ The Challenge Building an enterprise grade Kubernetes platform entails more than simply deploying your applications. You need to protect them too. However, traditional DR solutions aren’t a fit for Kubernetes applications because they rely on machine-based backups and don’t speak the language of Kubernetes.learn more
I’m wondering if there are already some solutions for disaster recovery active-active K8S clusters where traffic can be partially switched and security is as granular to a pod level. I saw this https://portworx.com/kubernetes-disaster-recovery/ but not sure. Maybe some used anything like and can share some insights

I imagine K8s holds your app


so a CDN/Global Accelerator/DNS layer is necesary outside of K8s

So yes and no. I think it touches both K8S and outside of K8S. Yeah, definitely DNS layer outside is necessary. But such DNS should be managed. I’m more about something that manages the state of DNS and know state of both clusters to know to which on switch the traffic.
Also let’s imagine we have 3 pods (P1, P2, P3) in cluster A and B. P1 can connect to P2 API. If everything is in the same cluster A it’s fine (network policy can prevent unwanted traffic) but when P2 switches to cluster B then I’m not sure how to prevent P3 from accessing it as just network layer K8S network policy/SG/NACL doesn’t cut it. The traffic can originate from any node/any port in other K8S cluster.
Maybe I’m overcomplicating and it should be done on app layer with API keys?



Thanks guys!

Seems that this vid https://youtu.be/7WwkSgIv0eE has no right channel audio.
2021-02-28

Questions for this week:
• offline Terraform testing using LocalStack or Moto, what is you thoughts/experience?