Created
April 25, 2022 14:13
-
-
Save YurgenUA/0054b4a4f5a4abf4ccc89d08b1bab7c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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