I am using Amazon EKS.
I can list my services by
kubectl get services -n production-sealed-secrets
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
sealed-secrets ClusterIP 10.100.154.89 <none> 8080/TCP 4d8h
sealed-secrets-metrics ClusterIP 10.100.194.36 <none> 8081/TCP 4d8h
However, when I try to use Sealed Secrets to seal my secret by:
my-secret.unsealed.yaml:
---
apiVersion: v1
kind: Secret
metadata:
name: production-airbyte-secret
namespace: production-airbyte
stringData:
AWS_ACCESS_KEY_ID: xxx
AWS_SECRET_ACCESS_KEY: xxx
cat my-secret.unsealed.yaml | \
kubeseal \
--controller-namespace=production-sealed-secrets \
--controller-name=sealed-secrets \
--format=yaml \
> my-secret.yaml
I got error
error: cannot fetch certificate: error trying to reach service: dial tcp 172.31.13.104:8080: connect: connection timed out
Any ideas how to solve this error?