UNCLASSIFIED - NO CUI

Skip to content

#64: Resolve "Add custom network policies"

Andrew Kesterson requested to merge 64-add-custom-network-policies into main

General MR

Summary

Adds support to eck-operator for custom network policies via values yaml.

This depends on big-bang/bigbang!4184 (merged) for a documentation reference

Relevant logs/screenshots

Given these overrides:

eckOperator:
  # -- Toggle deployment of ECK Operator.
  enabled: true
  git:
    tag: null
    branch: 64-add-custom-network-policies
  values:
    networkPolicies:
      enabled: true
      additionalPolicies:
      - name: this-is-a-eck-operator-job-test-test
        spec:
          podSelector: {}
          policyTypes:
          - Egress
          egress:
          - to:
            - ipBlock:
                cidr: 172.20.0.0/12
      - name: this-is-a-zwei-eck-operator-job-test-test
        spec:
          podSelector: {}
          policyTypes:
          - Ingress
          ingress:
          - from:
            - ipBlock:
                cidr: 172.20.0.0/12

... we get these network policies (new ones at the bottom):

$ kubectl get networkpolicies -n eck-operator
NAME                                        POD-SELECTOR                              AGE
egress-kibana-allow                         app.kubernetes.io/name=elastic-operator   3m19s
egress-api                                  <none>                                    3m19s
egress-elasticsearch-allow                  app.kubernetes.io/name=elastic-operator   3m19s
allow-istiod-egress                         <none>                                    3m19s
egress-dns                                  <none>                                    3m19s
egress-tempo                                <none>                                    3m19s
default-deny-all                            <none>                                    3m19s

this-is-a-eck-operator-job-test-test        <none>                                    3m19s
this-is-a-zwei-eck-operator-job-test-test   <none>                                    3m19s

Linked Issue

Closes #64 (closed)

Upgrade Notices

N/A

Edited by Jimmy Ungerman

Merge request reports

Loading