Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APIService registriation fails: context deadline exceeded #1568

Open
teceP opened this issue Apr 17, 2024 · 0 comments
Open

APIService registriation fails: context deadline exceeded #1568

teceP opened this issue Apr 17, 2024 · 0 comments

Comments

@teceP
Copy link

teceP commented Apr 17, 2024

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:

  • v1alpha1.admission.stash.appscode.com
  • v1alpha1.repositories.stash.appscode.com
  • v1beta1.admission.stash.appscode.com

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant