Skip to content

Add ops config task to configure nuvolaris.ingresslb #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/docopts.md
Original file line number Diff line number Diff line change
@@ -26,6 +26,7 @@ Configure OpenServerless
Usage:
config (enable|disable) [--all] [--redis] [--mongodb] [--minio] [--cron] [--static] [--postgres] [--prometheus] [--slack] [--mail] [--affinity] [--tolerations] [--quota] [--milvus]
config apihost (<apihost>|auto) [--tls=<email>] [--protocol=<http/https>|auto]
config ingresslb (<ingresslb>|auto)
config runtimes [<runtimesjson>]
config slack [--apiurl=<slackapiurl>] [--channel=<slackchannel>]
config mail [--mailuser=<mailuser>] [--mailpwd=<mailpwd>] [--mailfrom=<mailfrom>] [--mailto=<mailto>]
@@ -53,6 +54,7 @@ Usage:

```
config apihost configure the apihost (auto: auto assign) and enable tls
config ingresslb configure the ingress LB (auto: auto discover). Provide a custom ingress namespace and a custom ingress controller service (e.g. my-ns/my-svc)
config runtime show the current runtime.json or import the <runtime-json> if provided
config enable enable OpenServerless services to install
config disable disable OpenServerless services to install
7 changes: 6 additions & 1 deletion config/opsfile.yml
Original file line number Diff line number Diff line change
@@ -39,7 +39,12 @@ tasks:
fi
- config -dump | rg OPERATOR_COMPONENT_TLS
- config -dump | rg OPERATOR_CONFIG_HOSTPROTOCOL

ingresslb:
silent: true
cmds:
- echo "cfg {{._ingresslb_}}"
- config OPERATOR_CONFIG_INGRESSLB="{{._ingresslb_}}"
- config -dump | rg OPERATOR_CONFIG_INGRESSLB
enable:
silent: true
cmds:
5 changes: 5 additions & 0 deletions setup/kubernetes/roles/operator-roles.yaml
Original file line number Diff line number Diff line change
@@ -101,6 +101,11 @@ rules:
resources: ["poddisruptionbudgets"]
verbs: ["get","patch","list","update","watch","create","delete"]

# required for patching kopf related resources
- apiGroups: ["zalando.org"]
resources: ["kopfpeerings"]
verbs: ["get", "list", "watch", "patch", "update"]

---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
1 change: 1 addition & 0 deletions setup/kubernetes/whisk.yaml
Original file line number Diff line number Diff line change
@@ -30,6 +30,7 @@ spec:
protocol: ${OPERATOR_CONFIG_HOSTPROTOCOL:-auto}
affinity: ${OPERATOR_CONFIG_AFFINITY:-false}
tolerations: ${OPERATOR_CONFIG_TOLERATIONS:-false}
ingresslb: ${OPERATOR_CONFIG_INGRESSLB:-auto}
components:
# start openwhisk controller
openwhisk: true