Skip to content

Instantly share code, notes, and snippets.

@cedricve
Created October 22, 2024 13:35
Show Gist options
  • Save cedricve/589f1490642ed182a3e62ff41445f001 to your computer and use it in GitHub Desktop.
Save cedricve/589f1490642ed182a3e62ff41445f001 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: factory
spec:
replicas: 1
selector:
matchLabels:
app: factory
minReadySeconds: 10
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
template:
metadata:
labels:
app: factory
spec:
containers:
- name: factory
image: uugai/factory:v1.0.5
resources:
limits:
memory: 256Mi
cpu: 500m
ports:
- containerPort: 8080
envFrom:
- configMapRef:
name: mongodb
env:
- name: PORT
value: '8080'
- name: GIN_MODE
value: release
- name: KERBEROS_LOGIN_USERNAME
value: root
- name: KERBEROS_LOGIN_PASSWORD
value: kerberos
- name: MQTTURI
value: tcp://mqtt.kerberos.io:1883
- name: MQTT_USERNAME
value: ''
- name: MQTT_PASSWORD
value: ''
- name: KERBEROS_AGENT_IMAGE
value: kerberos/agent:latest
- name: KERBEROS_AGENT_MEMORY_LIMIT
value: 256Mi
- name: NAMESPACE
value: kerberos-factory
- name: FACTORY_ENVIRONMENT
value: kubernetes
- name: K8S_PROXY
value: http://localhost:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment