-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Bug Report
What did you do?
I followed the guideline for installing the operator as described here: https://github.com/operator-framework/operator-sdk/blob/master/doc/helm/user-guide.md
The steps I did are the following:
Helm operator.pdf
when I have executed
$kubectl apply -f deploy/crds/example_v1alpha1_nginx_cr.yaml
I get the following error:
Error from server (NotFound): error when creating "deploy/crds/example_v1alpha1_nginx_cr.yaml": the server could not find the requested resource (post nginxs.example.com)
What did you expect to see?
A clear and concise description of what you expected to happen (or insert a code snippet).
Something like:
$ kubectl get deployment
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
example-nginx-b9phnoz9spckcrua7ihrbkrt1 2 2 2 2 1m
Check the pods to confirm 2 replicas were created:
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
example-nginx-b9phnoz9spckcrua7ihrbkrt1-f8f9c875d-fjcr9 1/1 Running 0 1m
example-nginx-b9phnoz9spckcrua7ihrbkrt1-f8f9c875d-ljbzl 1/1 Running 0 1m
What did you see instead? Under which circumstances?
A clear and concise description of what you expected to happen (or insert a code snippet).
"Error from server (NotFound): error when creating "deploy/crds/example_v1alpha1_nginx_cr.yaml": the server could not find the requested resource (post nginxs.example.com)"
Environment
- operator-sdk version:
operator-sdk version v0.3.0+git
-
Kubernetes version information:
Insert output of
kubectl version
here
lient Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.2", GitCommit:"bb9ffb1654d4a729bb4cec18ff088eacc153c239", GitTreeState:"clean", BuildDate:"2018-08-07T23:17:28Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"10+", GitVersion:"v1.10.0+b81c8f8", GitCommit:"b81c8f8", GitTreeState:"clean", BuildDate:"2019-01-13T08:18:56Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
- Kubernetes cluster kind:
"I'm using minishift"
- Are you writing your operator in ansible, helm, or go?
Helm
Possible Solution
Additional context
Add any other context about the problem here.