https://pulumi.com logo
#general
Title
# general
b

busy-umbrella-36067

09/30/2019, 8:48 PM
is there any way to disable the warnings from
@pulumi/kubernetes
?
apps/v1beta1/Deployment is not supported by Kubernetes 1.16+ clusters. Use apps/v1/Deployment instead.
w

worried-city-86458

09/30/2019, 9:09 PM
I'd like this too, or better yet, an option to auto update resource types.
c
set the
PULUMI_K8S_SUPPRESS_DEPRECATION_WARNINGS
flag
🙏 1
🍺 1
But, as they say, caveat emptor 🙂
I am super wary of auto-conversion for users, I have no idea what to be worried about there. If you have a clear idea I’d be happy to hear it.
w

worried-city-86458

09/30/2019, 11:13 PM
You're right of course. Happy to be able to suppress for now, especially when they're coming from resources outside my control, like helm templates etc.
c

creamy-potato-29402

09/30/2019, 11:14 PM
Just FYI, if you didn’t know: these resources are completely missing in 1.16+. If you are planning on moving there, you will simply not be able to use those charts
I think you have 9 months before 1.16 is the oldest supported version of Kubernetes.
w

worried-city-86458

09/30/2019, 11:21 PM
Yeah, I think there are already PRs in progress for the prometheus operator helm charts.
I wish I could move to latest k8s, but aws eks lags by two releases.
☝️ 1
c

creamy-potato-29402

09/30/2019, 11:31 PM
Classic EKS
w

worried-city-86458

09/30/2019, 11:32 PM
Classic AWS 😢
c

creamy-potato-29402

09/30/2019, 11:34 PM
Slightly OT, but how do you all transition workloads between EKS clusters?
Just curious since you’re actually pulumi users
w

worried-city-86458

09/30/2019, 11:34 PM
Would it be safe enough to "clone" the provider using say
lodash
and then set
suppressDeprecationWarnings: true
for the helm templates?
c

creamy-potato-29402

09/30/2019, 11:35 PM
you should be able to just set an env var in bash or windows
w

worried-city-86458

09/30/2019, 11:35 PM
Yeah but say I want to only suppress for third party resources
c

creamy-potato-29402

09/30/2019, 11:35 PM
Ah
I believe you need to instantiate actual providers each time—they’re an actual pulumi resource, and so they make RPC calls to the engine to register
so cloning it is probably going to get weird
w

worried-city-86458

09/30/2019, 11:36 PM
Right, that's what I wondered.
We heading towards moving everything from ECS to EKS, emphasizing Kubernetes, so preferably reducing our explicit AWS dependencies.
So haven't had to think about cluster workloads much
c

creamy-potato-29402

09/30/2019, 11:40 PM
A thing I’m perpetually interested in is that EKS doesn’t do in-place upgrades of the agents, which means you have to actually take all the stuff running in each cluster and move it to a different cluster when you upgrade
and since versions deprecate so fast, you have to do this pretty often
it seems like everyone has a special and slightly janky workflow for this
w

worried-city-86458

09/30/2019, 11:42 PM
Sounds like something Pulumi can help with; blue green cluster deployments anyone?
w

white-balloon-205

10/01/2019, 2:40 AM
This blog post is a key part of that - we’re thinking hard about what we can do to help automate this even more: https://www.pulumi.com/blog/day-2-kubernetes-migrating-eks-nodegroups-with-zero-downtime/
3 Views