kops: kops export --internal gives error on 1.26.3
/kind bug
1. What kops version are you running? The command kops version, will display
this information.
1.26.3
2. What Kubernetes version are you running? kubectl version will print the
version if a cluster is running or provide the Kubernetes version specified as
a kops flag.
1.26.3
3. What cloud provider are you using?
aws
4. What commands did you run? What is the simplest way to reproduce this issue?
kops export kubecfg <cluster-address> --state <state> --admin --internal
k get pods
5. What happened after the commands executed?
E0612 11:43:20.331105 19527 memcache.go:265] couldn't get current server API group list: Get "https://api.internal.testcluster-api.control.example.com:8443/api?timeout=32s": dial tcp 192.168.0.98:8443: connect: connection refused
6. What did you expect to happen?
able to get pods on cluster
7. Please provide your cluster manifest. Execute
kops get --name my.example.com -o yaml to display your cluster manifest.
You may want to remove your cluster name and other sensitive information.
apiVersion: kops.k8s.io/v1alpha2
kind: Cluster
metadata:
creationTimestamp: "2023-06-05T14:54:56Z"
name: testcluster-api.control.example.com
spec:
api:
loadBalancer:
class: Network
sslCertificate: arn:aws:acm:eu-east-6:12345678:certificate/46456456456-erg45t54-45645g45-343
type: Internal
authorization:
rbac: {}
channel: stable
cloudLabels:
Owner: testcluster
kops: testcluster.control.example.com
cloudProvider: aws
configBase: s3://testcluster/testcluster.control.example.com
containerRuntime: containerd
encryptionConfig: true
iam:
legacy: false
kubeControllerManager:
enableProfiling: false
featureGates:
RotateKubeletServerCertificate: "true"
terminatedPodGCThreshold: 10
kubeScheduler:
enableProfiling: false
kubernetesVersion: v1.26.3
masterPublicName: testcluster-api.control.example.com
8. Please run the commands with most verbose logging by adding the -v 10 flag.
Paste the logs into this report, or in a gist and provide the gist link here.
9. Anything else do we need to know? we change the masterPublicName in config
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 33 (14 by maintainers)
Changing to
made kops add the needed SAN.
Is there a way to make kops keep old record with new masters IP addresses i.e. to have both:
?
Adding CNAME in the middle of rolling update is not something we want to do 😃 I did it manually just to validate the theory.