Closed gwolfis closed 3 years ago
@gwolfis i am going to get the repo fixed. I just setup CRDs with NodePort and it works well. Please use my repo https://github.com/mdditt2000/kubernetes-1-19/tree/master/cis%202.2/crd/big-ip-60-nodeport
Next i want to add node selector and will update the link above.
Yes, using your repo and this works. Only minor is the pool which needs to get added manually. But okay for testing.
Kind regards,
Gert
@gwolfis not sure i understand why the pools need to be added manually. That must be something on your side. I will reach out to you via F5 email.
label create f5role=worker added to nodes 2-4
[kube@k8s-1-19-master 1531]$ kubectl get nodes --show-labels
NAME STATUS ROLES AGE VERSION LABELS
k8s-1-19-master.lab.com Ready
[kube@k8s-1-19-master 1531]$ kubectl create -f virtual-server-80.yaml virtualserver.cis.f5.com/f5-demo created [kube@k8s-1-19-master 1531]$
Define the label in the CRD virtual and you done. No global setting in the CIS deployment is required.
apiVersion: "cis.f5.com/v1" kind: VirtualServer metadata: name: f5-demo labels: f5cr: "true" spec: virtualServerAddress: "10.192.75.108" host: mysite.f5demo.com pools:
Remove the label and I see all 5 nodes
Files can be located at https://github.com/mdditt2000/kubernetes-1-19/tree/master/cis%202.2/github/1531
Setup Details
CIS Version : 2.1.1
Build: f5networks/k8s-bigip-ctlr:latest
BIGIP Version: Big IP 15.0.1 AS3 Version: 3.20
Agent Mode: AS3/CRD
Orchestration: K8S/OSCP
Orchestration Version: k8s 1.19 Pool Mode:Nodeport
Additional Setup details: <Platform/CNI Plugins/ cluster nodes/ etc>
Description
The mentioned sample at clouddocs: https://clouddocs.f5.com/containers/latest/userguide/crd.html#examples-repository does not work. First the YAML isn't syntactically correct using apiVersion: extensions/v1beta1 instead of app/v1. missing a comma in the args section.
when kubectl create -f sample-nodeport-k8s-bigip-ctlr-crd-secret.yml
the following errors occur: error: error validating "sample-nodeport-k8s-bigip-ctlr-crd-secret.yml": error validating data: [ValidationError(Deployment.spec.template): unknown field "containers" in io.k8s.api.core.v1.PodTemplateSpec, ValidationError(Deployment.spec.template): unknown field "imagePullSecrets" in io.k8s.api.core.v1.PodTemplateSpec, ValidationError(Deployment.spec.template.metadata): unknown field "app" in io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta, ValidationError(Deployment.spec.template): unknown field "serviceAccountName" in io.k8s.api.core.v1.PodTemplateSpec, ValidationError(Deployment.spec): missing required field "selector" in io.k8s.api.apps.v1.DeploymentSpec]; if you choose to ignore these errors, turn validation off with --validate=false
Steps To Reproduce
1) Try to build CRD based on the mentioned steps in clouddocs and you will expirience the same errors 2) 3)
Expected Result
It should bring the cis controller up supporting CRDs
when you give an example with defined steps, my expectation is that after submitting the last step I should have a working example.
Actual Result
Diagnostic Information
Observations (if any)