Skip to content

Instantly share code, notes, and snippets.

@bharatmicrosystems
Created November 13, 2020 08:23
Show Gist options
  • Save bharatmicrosystems/e1599074abc602abee668158d474e3f0 to your computer and use it in GitHub Desktop.
Save bharatmicrosystems/e1599074abc602abee668158d474e3f0 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: ambassador-pod
labels:
app: ambassador-app
spec:
volumes:
- name: shared
emptyDir: {}
containers:
- name: app-container-poller
image: yauritux/busybox-curl
command: ["/bin/sh"]
args: ["-c", "while true; do curl 127.0.0.1:81 > /usr/share/nginx/html/index.html; sleep 10; done"]
volumeMounts:
- name: shared
mountPath: /usr/share/nginx/html
- name: app-container-server
image: nginx
ports:
- containerPort: 80
volumeMounts:
- name: shared
mountPath: /usr/share/nginx/html
- name: ambassador-container
image: bharamicrosystems/nginx-forward-proxy
ports:
- containerPort: 81
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment