mdatabase.kb.io webhook error
wid opened this issue · 2 comments
Hello,
I use:
Kubernetes v1.21.1
cert-manager 1.4.4
This is my configuration:
values.yaml:
enableMetricsRbac: false
dbms:
- databaseClassName: "postgres-default"
endpoints:
- name: "postgres-default"
dsn: "postgres://postgres@REDACTED"
postgres-example.yaml:
apiVersion: database.dbaas.bedag.ch/v1
kind: Database
metadata:
name: database-sample
spec:
endpoint: postgres-default
I get a the following error message on kubectl apply -f postgres-example.yaml:
Error from server (InternalError): error when creating "postgres-example.yaml": Internal error occurred: failed calling webhook "mdatabase.kb.io": Post "https://kubernetes-dbaas-webhook-service.kubernetes-dbaas-system.svc:443/mutate-database-dbaas-bedag-ch-v1-database?timeout=10s": dial tcp 10.250.98.125:443: connect: connection refused
Btw:
❯ kgs
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes-dbaas-webhook-service ClusterIP 10.250.96.229 <none> 443/TCP 86s
The service has no endpoints:
❯ kubectl describe service kubernetes-dbaas-webhook-service
Alias tip: kdsvc kubernetes-dbaas-webhook-service
Name: kubernetes-dbaas-webhook-service
Namespace: kubernetes-dbaas-system
Labels: app.kubernetes.io/instance=kubernetes-dbaas
app.kubernetes.io/managed-by=Helm
app.kubernetes.io/name=kubernetes-dbaas
app.kubernetes.io/version=1.0.0
helm.sh/chart=kubernetes-dbaas-1.0.0
Annotations: meta.helm.sh/release-name: kubernetes-dbaas
meta.helm.sh/release-namespace: kubernetes-dbaas-system
Selector: control-plane=controller-manager
Type: ClusterIP
IP Family Policy: SingleStack
IP Families: IPv4
IP: 10.250.99.120
IPs: 10.250.99.120
Port: 443/TCP
TargetPort: 9443/TCP
Endpoints:
Session Affinity: None
Events: