https://pulumi.com logo
#contribute
Title
# contribute
w

wooden-fish-92631

06/08/2021, 9:33 PM
Hi everyone! I’ve built a proof of concept of using Pulumi Automation API in k8s operator. Is this example good enough to publish it and send a PR with a link to pulumi automation examples? The main idea of the operator is to give easy access to cloud resources for developers. For example, developers work on an authorization service and they need a Redis cluster. They just create a small CRD in the service’s helm chart and apply it. Something like this:
Copy code
kind: RedisCluster
metadata:
  name: auth-redis
spec:
  memory: 16Gb
k8s operator creates Redis Cluster in AWS with all companies security policies and best practices while developers don’t even need to know in which cloud their code runs. Proof of concept is written in Go with OperatorSDK.
partypus 8bit 1
🎉 1
💯 2
r

red-match-15116

06/08/2021, 9:38 PM
Hey @wooden-fish-92631 yeah, that sounds awesome! Definitely do make a PR to automation-api-examples and we’d love to link to you project 🙂
p

plain-quill-22197

07/05/2021, 4:35 PM
I thought about it, but we do it the other way around. We aim not to use Helm charts for services.
For example, with a given Redis customer resource, how would the service get the cluster credentials? If the service itself creates a Redis stack, it will be able to get the stack output and use the resource
w

wooden-fish-92631

07/06/2021, 1:56 PM
Operator can create a secret with Redis credentials and k8s externalName with redis domain