Since Mavericks stopped using the deprecated ipfw (as of Mountain Lion), we'll be using pf to allow port forwarding.
####1. anchor file
Create an anchor file under /etc/pf.anchors/<anchor file> with your redirection rule like:
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: aws-auth | |
| namespace: kube-system | |
| data: | |
| mapRoles: | | |
| - groups: | |
| - system:masters | |
| rolearn: arn:aws:iam::265337873895:role/AWSReservedSSO_AdministratorAccess_XXXXXXXXXXXXXXXXXXX |
| # Source: https://gist.github.com/48f44d3974db698d3127f52b6e7cd0d3 | |
| ########################################################### | |
| # Automation of Everything # | |
| # How To Combine Argo Events, Workflows, CD, and Rollouts # | |
| # https://youtu.be/XNXJtxkUKeY # | |
| ########################################################### | |
| # Requirements: | |
| # - k8s v1.19+ cluster with nginx Ingress |