Skip to content
This repository has been archived by the owner on May 8, 2022. It is now read-only.

mdatabase.kb.io webhook error #4

Open
wid opened this issue Nov 24, 2021 · 2 comments
Open

mdatabase.kb.io webhook error #4

wid opened this issue Nov 24, 2021 · 2 comments
Assignees

Comments

@wid
Copy link

wid commented Nov 24, 2021

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
@criscola criscola self-assigned this Nov 24, 2021
@wid
Copy link
Author

wid commented Nov 24, 2021

Btw:

❯ kgs
NAME                               TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)   AGE
kubernetes-dbaas-webhook-service   ClusterIP   10.250.96.229   <none>        443/TCP   86s

@wid
Copy link
Author

wid commented Nov 29, 2021

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:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants