stashed / stash

🛅 Backup your Kubernetes Stateful Applications
https://stash.run
Other
1.31k stars 86 forks source link

APIService registriation fails: context deadline exceeded #1568

Open teceP opened 5 months ago

teceP commented 5 months ago

Hello, I try to install following Stash Charts with default parameters (except for license code of course) in community mode:

  - name: stash
    repository: "https://charts.appscode.com/stable/"
    version: "v2024.4.8"

  - name: stash-catalog
    repository: "https://charts.appscode.com/stable/"
    version: "v2024.4.8"

  - name: stash-ui-server
    repository: "https://charts.appscode.com/stable/"
    version: "0.15.0"

Kuberntes Version:

clientVersion:
  buildDate: "2023-06-14T09:53:42Z"
  compiler: gc
  gitCommit: 25b4e43193bcda6c7328a6d147b1fb73a33f1598
  gitTreeState: clean
  gitVersion: v1.27.3
  goVersion: go1.20.5
  major: "1"
  minor: "27"
  platform: windows/amd64
kustomizeVersion: v5.0.1
serverVersion:
  buildDate: "2023-11-15T16:50:09Z"
  compiler: gc
  gitCommit: 66fee42707cd7f5a89f1987f7cb81b02dd19161c
  gitTreeState: clean
  gitVersion: v1.27.8
  goVersion: go1.20.11
  major: "1"
  minor: "27"
  platform: linux/amd64

The APIService registration seems to fail:

apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: >
      {"apiVersion":"apiregistration.k8s.io/v1","kind":"APIService","metadata":{"annotations":{},"labels":{"app.kubernetes.io/instance":"stash","app.kubernetes.io/managed-by":"Helm","app.kubernetes.io/name":"stash-community","app.kubernetes.io/version":"v0.34.0","argocd.argoproj.io/instance":"stash","helm.sh/chart":"stash-community-v0.34.0"},"name":"v1alpha1.admission.stash.appscode.com"},"spec":{"caBundle":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURCVENDQWUyZ0F3SUJBZ0lRYWEvZHlQS2lmbm80cG82d2djNWMwVEFOQmdrcWhraUc5xxxxxxxxxxxxxxxxxxxxGQvMmlKVVhCVVdseGpOKzdZQ0h0NVI0M2Uvajk3d2RNdi9RUmNmMXhjCmVaS3dFMzBZeEdiUUYrTkhaKzEvNkFtMFIrZHZPR1JaOGdsZmxkZUgwUlZKdzJlZkJMVkU2V0UzVmFyaWJQSXQKRktNN0Nhdkd5MFVXCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K","group":"admission.stash.appscode.com","groupPriorityMinimum":10000,"service":{"name":"stash-stash-community","namespace":"stash"},"version":"v1alpha1","versionPriority":15}}
  creationTimestamp: '2024-04-17T10:31:16Z'
  labels:
    app.kubernetes.io/instance: stash
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: stash-community
    app.kubernetes.io/version: v0.34.0
    argocd.argoproj.io/instance: stash
    helm.sh/chart: stash-community-v0.34.0
  name: v1alpha1.admission.stash.appscode.com
  resourceVersion: '3481975213'
  uid: 40da7aa6-6b68-4780-b245-2838bbe772db
spec:
  caBundle: >-
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURCVENDQWUyZ0F3SUJBZ0lRYWEvZHlQS2lmbm80cG82d2djNWMwVEFOQmdrcWhraUc5xxxxxxxxxxxxxxxxxxxxGQvMmlKVVhCVVdseGpOKzdZQ0h0NVI0M2Uvajk3d2RNdi9RUmNmMXhjCmVaS3dFMzBZeEdiUUYrTkhaKzEvNkFtMFIrZHZPR1JaOGdsZmxkZUgwUlZKdzJlZkJMVkU2V0UzVmFyaWJQSXQKRktNN0Nhdkd5MFVXCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
  group: admission.stash.appscode.com
  groupPriorityMinimum: 10000
  service:
    name: stash-stash-community
    namespace: stash
    port: 443
  version: v1alpha1
  versionPriority: 15
status:
  conditions:
    - lastTransitionTime: '2024-04-17T10:31:16Z'
      message: >-
        failing or missing response from
        https://10.2.8.188:8443/apis/admission.stash.appscode.com/v1alpha1: Get
        "https://10.2.8.188:8443/apis/admission.stash.appscode.com/v1alpha1":
        context deadline exceeded (Client.Timeout exceeded while awaiting
        headers)
      reason: FailedDiscoveryCheck
      status: 'False'
      type: Available

It fails for:

The Service of the stash-community pod looks like this:

Name:              stash-stash-community
Namespace:         stash
Labels:            app.kubernetes.io/instance=stash
                   app.kubernetes.io/managed-by=Helm
                   app.kubernetes.io/name=stash-community
                   app.kubernetes.io/version=v0.34.0
                   argocd.argoproj.io/instance=stash
                   helm.sh/chart=stash-community-v0.34.0
Annotations:       <none>
Selector:          app.kubernetes.io/instance=stash,app.kubernetes.io/name=stash-community
Type:              ClusterIP
IP Family Policy:  SingleStack
IP Families:       IPv4
IP:                10.3.106.233
IPs:               10.3.106.233
Port:              api  443/TCP
TargetPort:        8443/TCP
Endpoints:         10.2.8.188:8443
Port:              pushgateway  56789/TCP
TargetPort:        56789/TCP
Endpoints:         10.2.8.188:56789
Session Affinity:  None
Events:            <none>

When i execute wget http://localhost:8443/apis/admission.stash.appscode.com/v1alpha1 inside the operator container, I also just run in the deadline.

The operator runs on Port 8443:

/ $ netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
.
.
.
tcp      579      0 :::8443                 :::*                    LISTEN      1/stash