The Server Could not find the requested Resource
Closed this issue · 3 comments
Kubernetes Version: 1.17.5
Voyager Appscode Version: 10.0.0
Chart version: 10.0.0
The Vault operator runs fine after I deploy it with the version of Helm chart. But the instantiation of the resource fails with the below error
Operator Error:
E0903 16:19:40.458185 1 worker.go:76] Failed to process key code-signing-dev/codesigning-dev-mongodb-appscode. Reason: the server could not find the requested resource
I0903 16:19:40.458209 1 worker.go:80] Error syncing key code-signing-dev/codesigning-dev-mongodb-appscode: the server could not find the requested resource
I0903 16:19:40.463447 1 ingress_crds.go:95] Sync/Add/Update for engress code-signing-dev/codesigning-dev-mongodb-appscode
I0903 16:19:40.463532 1 parser.go:32] [4199cc84-a7dd-463a-92e9-1c5b12a69241] getting endpoints for code-signing-dev codesigning-dev-mongodb port {0 27017 }
I0903 16:19:40.463539 1 parser.go:45] [4199cc84-a7dd-463a-92e9-1c5b12a69241] looking for services in namespace code-signing-dev with name codesigning-dev-mongodb
I0903 16:19:40.469656 1 parser.go:130] [4199cc84-a7dd-463a-92e9-1c5b12a69241] Found target port 27017 for service codesigning-dev-mongodb
I0903 16:19:40.496064 1 workload.go:574] Creating apps/v1beta1, Kind=Deployment code-signing-dev/voyager-codesigning-dev-mongodb-appscode.
E0903 16:19:40.497037 1 worker.go:76] Failed to process key code-signing-dev/codesigning-dev-mongodb-appscode. Reason: the server could not find the requested resource
Config on the operator
- args:
- run
- --cloud-provider=openstack
- --cloud-config=/etc/kubernetes/cloud_config
- --v=3
- --rbac=true
- --ingress-class=voyager
- --operator-service=voyager-voyager-operator
- --docker-registry=appscode
- --haproxy-image-tag=1.8.12-7.4.0-alpine
- --exporter-image-tag=10.0.0
- --secure-port=8443
- --audit-log-path=-
- --tls-cert-file=/var/serving-cert/tls.crt
- --tls-private-key-file=/var/serving-cert/tls.key
- --enable-status-subresource=false
- --enable-analytics=false
Ingress definition:
apiVersion: v1
items:
- apiVersion: voyager.appscode.com/v1beta1
kind: Ingress
metadata:
annotations:
ingress.appscode.com/annotations-service: |
{
"external-dns.alpha.kubernetes.io/hostname" : "xxxxxx"
}
ingress.appscode.com/default-option: '{"dontlognull": "true", "clitcpka": "true"}'
ingress.appscode.com/default-timeout: '{"connect": "5000", "server": "3h", "client":
"3h", "tunnel": "3h", "client-fin": "3h"}'
ingress.appscode.com/monitoring-agent: prometheus.io/builtin
ingress.appscode.com/replicas: "2"
ingress.appscode.com/stats: "true"
kubernetes.io/ingress.class: voyager
meta.helm.sh/release-name: codesigning-dev
meta.helm.sh/release-namespace: code-signing-dev
creationTimestamp: "2020-09-03T15:30:07Z"
generation: 1
labels:
app: mongodb
app.kubernetes.io/managed-by: Helm
chart: mongodb-7.13.0
heritage: Helm
release: codesigning-dev
name: codesigning-dev-mongodb-appscode
namespace: code-signing-dev
spec:
livenessProbe:
failureThreshold: 6
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 27017
timeoutSeconds: 5
readinessProbe:
exec:
command:
- ping
- -c
- "5"
- xxxxx
failureThreshold: 6
initialDelaySeconds: 60
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 10
rules:
- host: xxxxx
tcp:
backend:
serviceName: codesigning-dev-mongodb
servicePort: 27017
port: 27017
tls:
- hosts:
- xxxxx
secretName: k8s-sqa-tls
kind: List
metadata:
resourceVersion: ""
selfLink: ""
Any help on this would be greatly appreciated. im not able to point to where the error is.
@tamalsaha Would really appreciate your help buddy.
I0903 16:19:40.496064 1 workload.go:574] Creating apps/v1beta1, Kind=Deployment code-signing-dev/voyager-codesigning-dev-mongodb-appscode.
apps/v1beta1 was removed from k8s, v1.16 which voyager v10 is trying to use. Have you tried updating your voyager version?
https://kubernetes.io/blog/2019/07/18/api-deprecations-in-1-16/
Try the Voyager v2021.10.18. This issue is fixed.