Skip to content

Instantly share code, notes, and snippets.

@bprashanth
Last active October 13, 2015 00:01
Show Gist options
  • Save bprashanth/66d376ceb4163528e1fd to your computer and use it in GitHub Desktop.
Save bprashanth/66d376ceb4163528e1fd to your computer and use it in GitHub Desktop.
In test/e2e/testing-manifests/netexec/
netexecrc.yaml
```yaml
apiVersion: v1
kind: ReplicationController
metadata:
name: netexec
spec:
# Assumes you have 3 nodes in your cluster.
replicas: 3
template:
metadata:
labels:
app: netexec
spec:
containers:
- name: netexec
image: gcr.io/google_containers/netexec:1.0
ports:
- containerPort: 8080
# This is to force these pods to land on different hosts.
# TODO: use the downward api and get podname instead.
hostPort: 81
```
netexecsvc.yaml
```yaml
apiVersion: v1
kind: Service
metadata:
name: netexec
labels:
app: netexec
spec:
Type: NodePort
ports:
- port: 80
targetPort: 8080
protocol: TCP
name: http
selector:
app: netexec
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment