sparse-intern-71089
11/26/2022, 11:11 PMbillowy-army-68599
billowy-army-68599
straight-arm-50771
11/27/2022, 2:41 AMdocker run -it --entrypoint='' pulumi/pulumi:latest bash
root@7040b4486d76:/# kubectl --version
error: unknown flag: --version
See 'kubectl --help' for usage.
root@7040b4486d76:/# kubectl version
WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short. Use --output=yaml|json to get the full version.
Client Version: <http://version.Info|version.Info>{Major:"1", Minor:"25", GitVersion:"v1.25.3", GitCommit:"434bfd82814af038ad94d62ebe59b133fcb50506", GitTreeState:"clean", BuildDate:"2022-10-12T10:57:26Z", GoVersion:"go1.19.2", Compiler:"gc", Platform:"linux/amd64"}
Kustomize Version: v4.5.7
billowy-army-68599
pulumi about
but in any case, you need to update itstraight-arm-50771
11/27/2022, 2:43 AMstraight-arm-50771
11/27/2022, 2:44 AMbillowy-army-68599
straight-arm-50771
11/27/2022, 4:14 AMstraight-arm-50771
11/27/2022, 4:14 AMnetwork:
type: gcp:compute:Network
cluster:
type: gcp:container:Cluster
properties:
ipAllocationPolicy: {}
location: us-east4
name: ${pulumi.stack}
network: ${network.id}
removeDefaultNodePool: true
initialNodeCount: 2
cluster-nodepool:
type: gcp:container:NodePool
properties:
cluster: ${cluster.id}
autoscaling:
minNodeCount: 1
maxNodeCount: 20
location: us-east4
nodeLocations:
- us-east4-c
options:
parent: ${cluster}
auth:
type: command:local:Command
properties:
create: USE_GKE_GCLOUD_AUTH_PLUGIN=True gcloud container clusters get-credentials ${cluster.id} --region=us-east4 --project=${pulumi.stack} --verbosity=error >/dev/null 2>&1
options:
dependsOn:
- ${cluster}
parent: ${cluster}
provider:
type: pulumi:providers:kubernetes
properties:
cluster: "gke_${pulumi.stack}_us-east4_${cluster.name}"
options:
dependsOn:
- ${auth}
parent: ${cluster}
argo-ns:
type: kubernetes:core/v1:Namespace
properties:
metadata:
name: argocd
options:
dependsOn:
- ${provider}
parent: ${cluster}
argo-deploy:
type: kubernetes:<http://helm.sh/v3:Release|helm.sh/v3:Release>
properties:
chart: argo-cd
version: 5.14.1
name: argo-deploy
namespace: argocd
repositoryOpts:
repo: <https://argoproj.github.io/argo-helm>
options:
providers:
- ${provider}
dependsOn:
- ${argo-ns}
- ${auth}
parent: ${argo-ns}
straight-arm-50771
11/27/2022, 4:16 AMstraight-arm-50771
11/27/2022, 4:16 AM$ docker run -it --entrypoint='' pulumi/pulumi:latest bash
root@e1a34e076f55:/# pulumi about
CLI
Version 3.48.0
Go Version go1.19.2
Go Compiler gc
Host
OS debian
Version 11.5
Arch x86_64
billowy-army-68599
what I’m saying is that I’m not doing anything unique hereyes, that’s clear, however this was a bug in the Kubernetes provider prior to
3.21.1
which was fixed.
So if you’re using an old Kubernetes provider version, it’s likely fixed. If you’re using an older version then we need to file a new issue.billowy-army-68599
this is before k8s is even deployedThen it’s likely you have an old provider version cached in your state
straight-arm-50771
11/27/2022, 4:17 AMstraight-arm-50771
11/27/2022, 4:18 AMstraight-arm-50771
11/27/2022, 4:18 AMbillowy-army-68599
pulumi stack export
it’s empty?straight-arm-50771
11/27/2022, 4:19 AMstraight-arm-50771
11/27/2022, 4:19 AMbillowy-army-68599
straight-arm-50771
11/27/2022, 4:20 AMstraight-arm-50771
11/27/2022, 4:22 AMcd ~/repo/centegix-iac-pulumi/<<parameters.stack>>
gcloud config set project $PROJECT_ALIAS
pulumi stack init centegix-team/$PROJECT_ALIAS
pulumi config cp -s centegix-team/my-static-stack -d centegix-team/$PROJECT_ALIAS
pulumi stack select centegix-team/$PROJECT_ALIAS
pulumi config set gcp:project $PROJECT_ALIAS
pulumi config set environment ephemeral
pulumi config set subdomain ${CIRCLE_USERNAME,,}
n=0
until [ "$n" -ge 5 ] ; do
pulumi up -y -s centegix-team/$PROJECT_ALIAS && break
n=$((n+1))
sleep 30
done
that's the basis of it