Skip to content

Instantly share code, notes, and snippets.

@YurgenUA
Created April 25, 2022 14:13
Embed
What would you like to do?
apiVersion: apps/v1
kind: Deployment
metadata:
name: webapp
spec:
selector:
matchLabels:
app: webapp
replicas: 1
template: # template for the pods
metadata:
labels:
app: webapp
spec:
containers:
- name: webapp
# image: yurgenwk/demo-server-hb:v2
image: yurgenwk/demo-server-hb:{{ .Values.app.version | default "latest"}}
env:
- name: MQ_URL
# value: amqp://supervisor:supervisor@my-rabbitmq:5672/
value: {{ .Values.app.env.rabbitmq }}
---
apiVersion: v1
kind: Service
metadata:
name: heartbeat-webapp
spec:
selector:
app: webapp
ports:
- name: http
port: 3000
nodePort: 30080
type: NodePort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment