F5BigCecPeGlobaloptions¶
The F5BigCecPeGlobaloptions CR installs with the Cloud-Native Network Functions (CNFs) CRDs, and determines the default behavior for the installed F5BigPePolicy CRs. The F5BigCecPeGlobaloptions CR provides options that enable modifications to the default PE session management and session logging behavior.
Note: The CNFs 1.0.2 F5BigCecPeGlobaloptions CR is considered Early Access (EA). EA features are unsupported, and are made available to get customer feedback on feature functionality and stability.
This document guides you through configuring and installing a simple F5BigCecPeGlobaloptions CR.
CR Parameters¶
The table below describes the CR spec.peGlobalOptions
parameters:
Parameter | Description |
---|---|
peSrdbEnable |
Enables srDB in PE: true (default) or false. |
peLogLevel |
Specifices the PE log level: Critical,Debug, Error, Informational, Warning (default). |
pePolicyReevaluationInterval |
Specifies the reevaluation interval for the PE policy: 0 to 4294967295. The default is 20. |
peSessionInactivityTimeout |
Specifies the inactivity timeout for PE sessions: 0 to 525600. The default is 120. |
peSpmMaxSessionLimit |
Specifies the max number of PE SPM sessions: 128 to 1048576. The default is 524288. |
The table below describes the CR spec.peGlobalOptions.reporting
parameters:
Parameter | Description |
---|---|
hslFlowStartReport |
Enables generating and sending PE HSL flow start reports to destination endpoints: Enabled (default) or Disabled. |
hslFlowInterimReport |
Enables generated and sending PE HSL flow interval reports to destination endpoints: Enabled (default) or Disabled. |
hslFlowReportVersion |
Specifies the BIG-IP software version under which the PEM HSL flow reports are generated and sent out to the destination endpoint: REPORT_VER_16_1 (default). |
CR Example¶
apiVersion: k8s.f5net.com/v1
kind: F5BigCecPeGlobaloptions
metadata:
name: "cec-pe-default-global-options"
namespace: "cnf-gateway"
spec:
peGlobalOptions:
peLogLevel: "Debug"
pePolicyReevaluationInterval: 120
peSessionInactivityTimeout: 240
reporting:
hslFlowInterimReport: "Disabled"
CR updates¶
The F5BigCecPeGlobaloptions CR behaves differently than the other CNFs CRs: When you install the BIG-IP Controller to a namespace, a copy of the F5BigCecPeGlobaloptions is applied to namespace with the default values. Because only a single CR of this type can exist in the namespace, you must use the same name, cec-pe-default-global-options, when modifying the F5BigCecPeGlobaloptions CR. Also, when deleting the CR, a new copy will again be applied to the BIG-IP Controller’s namespace with the default values.
Installation¶
Use the steps below to modify the default values of the F5BigCecPeGlobaloptions CR.
Copy the F5BigCecPeGlobaloptions CR into a YAML file:
apiVersion: k8s.f5net.com/v1 kind: F5BigCecPeGlobaloptions metadata: name: "cec-pe-default-global-options" namespace: "cnf-gateway" spec: peGlobalOptions: peLogLevel: "Debug" pePolicyReevaluationInterval: 120 peSessionInactivityTimeout: 240 reporting: hslFlowInterimReport: "Disabled"
Replace the CR:
kubectl replace -f cnf-pe-globals.yaml
In this example, the BIG-IP Controller logs indicate the F5BigCecPeGlobaloptions CR was added/updated:
I0606 12:00:00.612067 1 event.go:282] Event(v1.ObjectReference{Kind:"F5CecPeGlobalOptions", F5CecPeGlobalOptions cnf-gateway/cec-pe-default-global-options was added/updated
Verify the values:
kubectl get -f cnf-pe-globals.yaml -o yaml
In this example, the defaults have been updated and match the replaced CR values:
apiVersion: k8s.f5net.com/v1 kind: F5BigCecPeGlobaloptions metadata: generation: 2 name: "cec-pe-default-global-options" namespace: "cnf-gateway" spec: peGlobalOptions: peLogLevel: Debug pePolicyReevaluationInterval: 120 peSessionInactivityTimeout: 240 reporting: hslFlowStartReport: Disabled
Reset the values back to the defaults:
kubectl delete -f cnf-pe-globals.yaml
In this example, the BIG-IP Controller logs indicate the F5BigCecPeGlobaloptions CR was added/updated:
I0606 12:00:00.612067 1 event.go:282] Event(v1.ObjectReference{Kind:"F5CecPeGlobalOptions", F5CecPeGlobalOptions cnf-gateway/cec-pe-default-global-options was added/updated
Continue to the F5BigPePolicy to begin using the new F5BigCecPeGlobaloptions CR.
Feedback¶
Provide feedback to improve this document by emailing cnfdocs@f5.com.