https://pulumi.com logo
Title
t

tall-shoe-66375

04/08/2021, 7:57 PM
Pulumi Kubernetes / Blue-Green Deployment outside scope Pulumi I have created a k8s cluster on GCE, created the Deployment/ClusterIp/Ingress on Pulumi My Dev Team use Codefresh for CI/CD with Blue/Green to deliver/deploy the new feature/bug fixes to the cluster. The question or challenge is, the deployment/cluster ip change in name, labels, matchLabels accordly the plugin/script provided by Codefresh to do this. So my question is: how can I sync this modification made outside Pulumi ?
b

bumpy-summer-9075

04/08/2021, 8:38 PM
https://www.pulumi.com/docs/reference/cli/pulumi_refresh/ maybe? (IMO the boldness is a bit obnoxious)
c

colossal-australia-65039

04/08/2021, 9:03 PM
the refresh won't work if the resource identifiers change (e.g. deployment name). Pulumi will refresh the state with the resource deleted so the next time you run
pulumi up
it will try to create the original resources. I think you need to decide whether you want certain resources to be managed by Pulumi or Codefresh. Don't mix them.
l

little-cartoon-10569

04/08/2021, 9:41 PM
This:
I think you need to decide whether you want certain resources to be managed by Pulumi or Codefresh. Don't mix them.
It may suit you to have Pulumi manage the GCE bits, and possibly building the images; and Codefresh to manage the draining and deployment of images into the clusters.
👍 1
t

tall-shoe-66375

04/08/2021, 10:30 PM
Thanks, I think we can Deploy using pulumi inside the codefresh pipeline. The question now is, Pulumi Deploy the new resource deployment/cluster ip as blue-green?