freezing-rainbow-69763
08/04/2023, 10:59 AMpulumi up
the different number of pods running in a kubernetes cluster
compared to the pods defined in the Helm Release and apply the required number of pods?
The idea behind this approach is to automatically correct unexpected manual changes in the kubernetes cluster.
Example:
const nginxIngress = new k8s.helm.v3.Release("nginx-ingress", {
chart: "ingress-nginx",
version: "4.0.6",
repositoryOpts: {
repo: "<https://kubernetes.github.io/ingress-nginx>",
},
values: {
controller: {
replicaCount: 2,
metrics: {
enabled: true,
},
}
},
}, { provider}
);
Nginx is running on 2 pods, I'll scale to 1 pod via kluster IDE. Pulumi up
does not detect any changes.cuddly-computer-18851
08/04/2023, 11:03 AMdry-keyboard-94795
08/04/2023, 11:07 AMpulumi refresh
first, so that the pulumi state is updated based on changes in k8sfreezing-rainbow-69763
08/04/2023, 12:45 PMpulumi refresh
and network and cluster changes were detected, but no pod count changes. I have applied pulumi refresh
but pulumi up
is still not detecting the changes.dry-keyboard-94795
08/04/2023, 12:52 PMfull-eve-52536
08/04/2023, 2:15 PMbitter-father-26598
08/05/2023, 3:54 PMfreezing-rainbow-69763
08/08/2023, 11:02 AMbitter-father-26598
08/13/2023, 6:00 PM