Skip to content

Instantly share code, notes, and snippets.

@eshleebien
Last active January 6, 2020 03:52
Show Gist options
  • Save eshleebien/7b19ec4205c07e0b3ed68d161f067ffc to your computer and use it in GitHub Desktop.
Save eshleebien/7b19ec4205c07e0b3ed68d161f067ffc to your computer and use it in GitHub Desktop.
For Inotify Minikube medium article
apiVersion: v1
kind: Service
metadata:
namespace: default
name: notify-forwarder
spec:
selector:
app: notify-forwarder
ports:
- protocol: UDP
port: 29324
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: notify-forwarder
spec:
replicas: 1
selector:
matchLabels:
app: notify-forwarder
template:
metadata:
labels:
app: notify-forwarder
spec:
containers:
- image: eshlee/notify-forwarder:latest
name: notify-forwarder
imagePullPolicy: Always
args:
- "receive"
volumeMounts:
- mountPath: /srv
name: srv
ports:
- containerPort: 29324
volumes:
- hostPath:
path: /Users/esh/workspace # The path inside the VM you want to receive updates
type: ""
name: srv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment