Skip to content

Instantly share code, notes, and snippets.

name: of-test
namespace: openfaas-fn
workdir: /home/app
command: ["sh"]
sync:
- .:/home/app/function
version: 1.0
provider:
name: openfaas
gateway: https://faas.example.com
functions:
of-test:
lang: python3-fastapi
handler: ./of-test
image: registry.example.com/of-test:latest
secrets:
@jmrobles
jmrobles / nifi.yaml
Created October 10, 2021 21:54
Apache NiFi deployment, service and ingress
apiVersion: apps/v1
kind: Deployment
metadata:
name: nifi
namespace: default
spec:
selector:
matchLabels:
app: nifi
template:
version: 1.0
provider:
name: openfaas
gateway: https://faas.example.com
functions:
pycon:
lang: python3
handler: ./pycon
image: registry.example.com/pycon:latest
def handle(req):
"""handle a request to the function
Args:
req (str): request body
"""
return req
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: openfaas-ingress
namespace: openfaas
labels:
name: openfaas-ingress
annotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
apiVersion: v1
kind: Service
metadata:
name: pgbouncer-service
spec:
ports:
- port: 5432
protocol: TCP
targetPort: 5432
selector:
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: pgbouncer
name: pgbouncer
spec:
replicas: 1
selector:
matchLabels:
wordpressUsername: admin
# Uncomment to define the password or leave commented to auto-generate one
# wordpressPassword:
wordpressEmail: [email protected]
wordpressFirstName: John
wordpressLastName: Smith
wordpressBlogName: Awesomic Marketing Frontend
wordpressScheme: https
livenessProbe:
httpGet:
#!/bin/bash
python manage.py dumpdata --natural-foreign \
sites \
users \
cms \
menus \
sekizai \
treebeard \
djangocms_text_ckeditor \
filer \