sample-config.json

{
  "kubectl-path": "C:/Kube/kubectl.exe",
  "kubectl-shell": "bash",
  "output-directory": "C:/temp",
  "cluster-configs": {
    "production": {
      "cmdlet-directives": {
        "override-required": [
          "Remove-CronJob",
          "Remove-K8sJob"
        ],
        "forbidden": [
          "Remove-Deployment",
          "Remove-Endpoint",
          "Remove-Ingress",
          "Remove-IngressClass",
          "Remove-Namespace",
          "Remove-Node",
          "Remove-PersistentVolumeClaim",
          "Remove-PersistentVolume",
          "Remove-Pod",
          "Remove-Secret",
          "Remove-ServiceAccount",
          "Remove-K8sService"
        ]
      },
      "kube-config-file": "c:/kube/productioncfg",
      "kube-context": "production",
      "kube-namespace": "release",
      "kube-port-forwarding": {
        "mlapi-2[2|3]": {
          "label-key": "app",
          "local-port": 35000,
          "remote-ports": [ 5000 ]
        },
        "mysql": {
          "label-key": "app",
          "local-port": 20306,
          "remote-ports": [ 3306 ]
        },
        "redis": {
          "label-key": "app",
          "local-port": 23379,
          "remote-ports": [ 6379 ]
        },
        "webapp": {
          "label-key": "app",
          "local-port": 8080,
          "remote-ports": [ 8080 ]
        }
      },
      "kube-proxy-port": null,
      "kubectl-shell": "bin/sh",
      "output-directory": null
    },
    "staging": {
      "cmdlet-directives": {
        "override-required": [
          "Remove-CronJob",
          "Remove-Deployment",
          "Remove-Endpoint",
          "Remove-Ingress",
          "Remove-IngressClass",
          "Remove-K8sJob",
          "Remove-Namespace",
          "Remove-Node",
          "Remove-PersistentVolumeClaim",
          "Remove-PersistentVolume",
          "Remove-Pod",
          "Remove-Secret",
          "Remove-ServiceAccount",
          "Remove-K8sService"
        ],
        "forbidden": [
        ]
      },
      "kube-context": "arn:aws:eks:us-east-2:1722:cluster/dev-us-west-2b",
      "kube-config-file": "c:/kube/stagingcfg",
      "kube-namespace": null,
      "kube-port-forwarding": {
        "mlapi-2[2|3]": {
          "label-key": "app",
          "local-port": 35000,
          "remote-ports": [ 5000 ]
        },
        "mysql": {
          "label-key": "app",
          "local-port": 20306,
          "remote-ports": [ 3306 ]
        },
        "redis": {
          "label-key": "app",
          "local-port": 23379,
          "remote-ports": [ 6379 ]
        },
        "webapp": {
          "label-key": "app",
          "local-port": 8080,
          "remote-ports": [ 8080 ]
        }
      },
      "kube-proxy-port": 8080,
      "kubectl-shell": null,
      "output-directory": "C:/Temp/staging"
    },
    "qa": {
      "cmdlet-directives": {
        "override-required": [
        ],
        "forbidden": [
        ]
      },
      "kube-context": "qa",
      "kube-config-file": null,
      "kube-namespace": null,
      "kube-port-forwarding": {
        "mlapi-2[2|3]": {
          "label-key": "app",
          "local-port": 35000,
          "remote-ports": [ 5000 ]
        },
        "mysql": {
          "label-key": "app",
          "local-port": 20306,
          "remote-ports": [ 3306 ]
        },
        "redis": {
          "label-key": "app",
          "local-port": 23379,
          "remote-ports": [ 6379 ]
        },
        "webapp": {
          "label-key": "app",
          "local-port": 8080,
          "remote-ports": [ 8080 ]
        }
      },
      "kube-proxy-port": 8080,
      "kubectl-shell": null,
      "output-directory": "C:/Temp/qa"
    },
    "dev": {
      "cmdlet-directives": {
        "override-required": [
        ],
        "forbidden": [
        ]
      },
      "kube-context": "dev",
      "kube-config-file": "C:/Temp/devcfg",
      "kube-namespace": null,
      "kube-port-forwarding": {
        "mlapi-2[2|3]": {
          "label-key": "app",
          "local-port": 35000,
          "remote-ports": [ 5000 ]
        },
        "mysql": {
          "label-key": "app",
          "local-port": 20306,
          "remote-ports": [ 3306 ]
        },
        "redis": {
          "label-key": "app",
          "local-port": 23379,
          "remote-ports": [ 6379 ]
        },
        "webapp": {
          "label-key": "app",
          "local-port": 8080,
          "remote-ports": [ 8080 ]
        }
      },
      "kube-proxy-port": 8080,
      "kubectl-shell": null,
      "output-directory": "C:/Temp/dev"
    }
  }
}