-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create openfaas ingress operator chart
Signed-off-by: Vivek Singh <[email protected]>
- Loading branch information
1 parent
af91f32
commit 322ea94
Showing
14 changed files
with
171 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: v1 | ||
description: Get custom domains and TLS for your OpenFaaS Functions through the FunctionIngress CRD | ||
name: ingress-operator | ||
version: 0.1.0 | ||
sources: | ||
- https://github.com/openfaas-incubator/ingress-operator | ||
home: https://www.openfaas.com | ||
icon: https://raw.githubusercontent.com/openfaas/media/master/OpenFaaS_logo_stacked_opaque.png | ||
keywords: | ||
- functions | ||
- service | ||
- ingress | ||
- openfaas | ||
maintainers: | ||
- name: alexellis | ||
email: [email protected] | ||
- name: viveksyngh | ||
email: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# OpenFaaS Ingress Operator | ||
|
||
The [Ingress operator](https://github.com/openfaas-incubator/ingress-operator) gets custom domains and TLS for your OpenFaaS Functions through the FunctionIngress CRD | ||
## Prerequisites | ||
|
||
- Install OpenFaaS | ||
|
||
You must have a working OpenFaaS installation. You can find [instructions in the docs](https://docs.openfaas.com/deployment/kubernetes/#pick-helm-or-yaml-files-for-deployment-a-or-b), including instructions to also install OpenFaaS via Helm. | ||
|
||
|
||
## Install the Chart | ||
|
||
- Add the OpenFaaS chart repo and deploy the `ingress-operator` chart. We recommend installing it in the same namespace as the rest of OpenFaaS | ||
|
||
```sh | ||
$ helm repo add openfaas https://openfaas.github.io/faas-netes/ | ||
$ helm upgrade ingress-operator openfaas/ingress-operator \ | ||
--install \ | ||
--namespace openfaas | ||
``` | ||
|
||
> The above command will also update your helm repo to pull in any new releases. | ||
## Configuration | ||
|
||
Additional ingress-operator options in `values.yaml`. | ||
|
||
| Parameter | Description | Default | | ||
| ------------------------ | -------------------------------------------------------------------------------------- | ------------------------------ | | ||
| `create` | Create the ingress-operator component | `false` | | ||
| `replicas` | Replicas of the ingress-operator| `1` | | ||
| `image` | Container image used in ingress-operator| `openfaas/ingress-operator:0.6.2` | | ||
| `resources` | Limits and requests for memory and CPU usage | Memory Requests: 25Mi | | ||
| `imagePullPolicy` | Image Pull Policy | `Always` | | ||
| `functionNamespace` | Namespace for functions | `openfaas-fn` | | ||
|
||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. | ||
See values.yaml for detailed configuration. | ||
|
||
## Removing the ingress-operator | ||
|
||
All control plane components can be cleaned up with helm: | ||
|
||
For Helm 2 | ||
|
||
```sh | ||
$ helm delete --purge ingress-operator | ||
``` | ||
|
||
For Helm 3 | ||
|
||
```sh | ||
$ helm uninstall ingress-operator | ||
``` |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Thanks for installing ingress-operator. Please follow the instructions below to get you started. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "openfaas.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
*/}} | ||
{{- define "openfaas.fullname" -}} | ||
{{- $name := default .Chart.Name .Values.nameOverride -}} | ||
{{- if contains $name .Release.Name -}} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}} | ||
{{- else -}} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...faas/templates/ingress-operator-rbac.yaml → ...ator/templates/ingress-operator-rbac.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{{- if .Values.ingressOperator.create }} | ||
{{- if .Values.create }} | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# https://github.com/openfaas-incubator/ingress-operator | ||
image: openfaas/ingress-operator:0.6.2 | ||
|
||
replicas: 1 | ||
|
||
create: false | ||
|
||
imagePullPolicy: "Always" | ||
|
||
functionNamespace: "openfaas-fn" | ||
|
||
rbac: true | ||
|
||
resources: | ||
requests: | ||
memory: "25Mi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters