Skip to content

Instantly share code, notes, and snippets.

@YurgenUA
Created April 25, 2022 14:13
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 YurgenUA/0054b4a4f5a4abf4ccc89d08b1bab7c4 to your computer and use it in GitHub Desktop.
Save YurgenUA/0054b4a4f5a4abf4ccc89d08b1bab7c4 to your computer and use it in GitHub Desktop.
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