F5Networks / k8s-bigip-ctlr

Repository for F5 Container Ingress Services for Kubernetes & OpenShift.
Apache License 2.0
355 stars 193 forks source link

How to override multiple virtual server setting in one partition #1558

Closed zhu20200720 closed 3 years ago

zhu20200720 commented 3 years ago

Setup Details

CIS Version : 2.1.0
Build: f5networks/k8s-bigip-ctlr:latest
BIGIP Version: Big IP x.x.x
AS3 Version: 3.21.0
Agent Mode: AS3 Orchestration: K8S/OSCP
Orchestration Version: 1.18.8
Pool Mode: Nodeport
Additional Setup details: <Platform/CNI Plugins/ cluster nodes/ etc>

Description

We have two ingress created two virtual servers in one f5 partition. The two Ingress, two custom ConfigMap were deployed in two separate k8s namespaces.

We want to override the as3 configmap settings for both virtual servers. "--override-as3-declaration=kube-system/customconfig", //"--override-as3-declaration=kube-system/customconfig1"

However only the last argument above works in Ingress controller.

Is there a way in Ingress controller or in ConfigMap to achieve overridden both virtual server settings?

image

image

Thanks, Mr zhu

Steps To Reproduce

1) 2) 3)

Expected Result

Actual Result

Diagnostic Information

<Configuration files, error messages, logs>
Note: Sanitize the data. For example, be mindful of IPs, ports, application names and URLs
Note: The following F5 article outlines the information required when opening an issue.
https://support.f5.com/csp/article/K60974137

Observations (if any)

mdditt2000 commented 3 years ago

@zhu20200720 CIS only support one AS3 override. Can you please merge ingress_x_y_z_vip_80 and ingress_x_y_z_vip1_80 into one ConfigMap. I can help if you share the YAML file.

zhu20200720 commented 3 years ago

Thank you @mdditt2000 , I attached two configMap, they are very similar. It would be great if they can be merged as we tried ourselves but getting issues. customconfig.txt customconfig1.txt

mdditt2000 commented 3 years ago

here you go

ConfigMap - https://github.com/mdditt2000/kubernetes-1-19/blob/master/cis%202.2/github/1558/configmap.yaml AS3 Json - https://github.com/mdditt2000/kubernetes-1-19/blob/master/cis%202.2/github/1558/configmap.json

This will resolve your issue

zhu20200720 commented 3 years ago

Thanks, we will test and report it back

mdditt2000 commented 3 years ago

i changed you file. It looks the " was incorrect and not valid. Let me know how the testing goes. That override should work for you.

zhu20200720 commented 3 years ago

@mdditt2000 thanks, it works. As we use cis 2.1.0, as3 3.21.0, we have to add the line ""schemaVersion": "3.0.0","

mdditt2000 commented 3 years ago

@zhu20200720 glad that resolved your issue!! Thank you..