-
Notifications
You must be signed in to change notification settings - Fork 479
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
Add openfaas ingress operator chart #666
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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/ |
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] |
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 | ||
``` |
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. |
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 -}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{{- $functionNs := default .Release.Namespace .Values.functionNamespace }} | ||
{{- if .Values.ingressOperator.create }} | ||
{{- if .Values.create }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't we always want to create these things now it's in it's own chart? (few files with this in) |
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
|
@@ -12,7 +11,7 @@ metadata: | |
name: ingress-operator | ||
namespace: {{ .Release.Namespace | quote }} | ||
spec: | ||
replicas: {{ .Values.ingressOperator.replicas }} | ||
replicas: {{ .Values.replicas }} | ||
selector: | ||
matchLabels: | ||
app: ingress-operator | ||
|
@@ -27,15 +26,15 @@ spec: | |
containers: | ||
- name: operator | ||
resources: | ||
{{- .Values.ingressOperator.resources | toYaml | nindent 10 }} | ||
image: {{ .Values.ingressOperator.image }} | ||
imagePullPolicy: {{ .Values.openfaasImagePullPolicy }} | ||
{{- .Values.resources | toYaml | nindent 10 }} | ||
image: {{ .Values.image }} | ||
imagePullPolicy: {{ .Values.imagePullPolicy }} | ||
command: | ||
- ./ingress-operator | ||
- -logtostderr | ||
env: | ||
- name: function_namespace | ||
value: {{ $functionNs | quote }} | ||
value: {{ .Values.functionNamespace | quote }} | ||
- name: ingress_namespace | ||
value: {{ .Release.Namespace | quote }} | ||
{{- end }} |
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 | ||
|
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Won't we want to get rid of this value as this is explicitly True when installing this now |
||
|
||
imagePullPolicy: "Always" | ||
|
||
functionNamespace: "openfaas-fn" | ||
|
||
rbac: true | ||
|
||
resources: | ||
requests: | ||
memory: "25Mi" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the ID of this section has changed to
'#pick-arkade-helm-or-plain-yaml-files