Skip to content

Instantly share code, notes, and snippets.

@maniankara
Last active February 21, 2018 06:04
Show Gist options
  • Save maniankara/e617d6b423394eb00ef0c77a8fdf9cc3 to your computer and use it in GitHub Desktop.
Save maniankara/e617d6b423394eb00ef0c77a8fdf9cc3 to your computer and use it in GitHub Desktop.
TCP echo server which replies with hostname, run as kubernetes daemonset
---
kind: DaemonSet
apiVersion: extensions/v1beta1
metadata:
name: tcp-server-ds
labels:
app: tcp-server-ds
spec:
template:
metadata:
name: tcp-server-ds
labels:
app: tcp-server-ds
spec:
hostNetwork: true
containers:
- image: maniankara/tcp-echo:1.0
ports:
- containerPort: 446
name: tcp-echo-server
args: ["--port", "446"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment