Skip to content

Instantly share code, notes, and snippets.

@alexellis
Created April 22, 2020 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexellis/b240e9d7758086c33af7f7aa063850ab to your computer and use it in GitHub Desktop.
Save alexellis/b240e9d7758086c33af7f7aa063850ab to your computer and use it in GitHub Desktop.
slow-queue-worker.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: openfaas
chart: openfaas-5.6.5
component: queue-worker
heritage: Helm
release: openfaas
name: slow-queue-worker
namespace: openfaas
resourceVersion: "777"
selfLink: /apis/apps/v1/namespaces/openfaas/deployments/queue-worker
uid: 91eebfca-ab27-45ea-ab60-f18f9d3e7b5d
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: slow-queue-worker
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
prometheus.io.scrape: "false"
creationTimestamp: null
labels:
app: slow-queue-worker
spec:
containers:
- env:
- name: faas_nats_address
value: nats.openfaas.svc.cluster.local
- name: faas_nats_durable_queue_subscription
value: "false"
- name: faas_nats_channel
value: slow-queue
- name: faas_nats_queue_group
value: faas
- name: faas_gateway_address
value: gateway.openfaas.svc.cluster.local
- name: gateway_invoke
value: "true"
- name: faas_function_suffix
value: .openfaas-fn.svc.cluster.local
- name: ack_wait
value: 60s
- name: secret_mount_path
value: /var/secrets
- name: basic_auth
value: "true"
image: openfaas/queue-worker:0.9.0
imagePullPolicy: IfNotPresent
name: queue-worker
resources:
requests:
cpu: 50m
memory: 120Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/secrets
name: auth
readOnly: true
dnsPolicy: ClusterFirst
nodeSelector:
beta.kubernetes.io/arch: amd64
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: auth
secret:
defaultMode: 420
secretName: basic-auth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment