We have installed consul using helm chart as below.
helm install -f config.yaml --version "0.31.1" consul hashicorp/consul -n consul
Later when we want to install a different version, deleted consul using this command
helm uninstall consul -n consul
And then deleted the complete namespace.
kubectl delete ns consul
But then installing the same release or any other release on the same cluster after cleanup, getting below error.
helm install -f config.yaml --version "0.31.1" consul hashicorp/consul -n consul
helm : W1209 23:28:27.095858 3592 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use
apiextensions.k8s.io/v1 CustomResourceDefinition
At line:1 char:1
+ helm install -f config.yaml --version "0.31.1" consul hashicorp/consu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (W1209 23:28:27....ourceDefinition:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
W1209 23:30:09.027146 5344 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W1209 23:30:09.266524 5344 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W1209 23:30:09.491669 5344 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W1209 23:30:09.720970 5344 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W1209 23:30:09.955124 5344 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W1209 23:30:10.189302 5344 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W1209 23:30:10.417455 5344 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W1209 23:30:10.642720 5344 warnings.go:70] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
Error: INSTALLATION FAILED: create: failed to create: the server was unable to return a response in the time allotted, but may still be processing the request (post secrets)
My config file:
global:
name: consul
datacenter: dc1
image: hashicorp/consul:1.10.0
metrics:
enabled: true
enableGatewayMetrics: true
server:
replicas: 1
securityContext:
runAsNonRoot: true
# bootstrapExpect: 1
# extraConfig: |
# {
# "telemetry": {
# "prometheus_retention_time": "8h",
# "disable_hostname": true
# }
# }
client:
enabled: true
securityContext:
runAsNonRoot: true
# extraConfig: |
# {
# "telemetry": {
# "prometheus_retention_time": "1m",
# "disable_hostname": true
# }
# }
controller:
enabled: true
syncCatalog:
enabled: true
toConsul: true
toK8S: false
default: false
connectInject:
enabled: true
default: false
envoyExtraArgs: "-l debug"
metrics:
defaultEnabled: true
defaultEnableMerging: true
transparentProxy:
defaultEnabled: true
ui:
enabled: true
service:
enabled: true
type: NodePort
# metrics:
# enabled: true
# provider: "prometheus"
# baseURL: http://prometheus-server
ingressGateways:
enabled: false
securityContext:
runAsNonRoot: true
defaults:
replicas: 1
service:
type: LoadBalancer
ports:
- port: 80
- port: 443
meshGateway:
enabled: false
replicas: 1
Any sugestions?
You can try this on aks test environment and check it once for reference and more details.