Skip to content

Instantly share code, notes, and snippets.

@amitlt
Created October 25, 2020 12:30
Show Gist options
  • Save amitlt/864234d17590b56bc00da3433ee0ddeb to your computer and use it in GitHub Desktop.
Save amitlt/864234d17590b56bc00da3433ee0ddeb to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
name: mousetrap
name: mousetrap
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: mousetrap
template:
metadata:
labels:
app: mousetrap
spec:
containers:
- env:
- name: AWS_ACCESS_KEY_ID
value: <access-id>
- name: AWS_SECRET_ACCESS_KEY
value: <secret-key>
- name: NODE_CONFIG_DIR
value: /config
- name: NODE_CONFIG_ENV
value: config
image: totangolabs/mousetrap:latest
livenessProbe:
failureThreshold: 3
httpGet:
path: /health
port: 3000
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 5
name: mousetrap
ports:
- containerPort: 3000
name: http
protocol: TCP
volumeMounts:
- name: mousetrap-config-volume
mountPath: /config
- image: mk0x/docker-clamav
imagePullPolicy: Always
name: clamav
ports:
- containerPort: 3310
protocol: TCP
volumes:
- name: mousetrap-config-volume
configMap:
name: mousetrap-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment