Last active
October 13, 2015 00:01
-
-
Save bprashanth/66d376ceb4163528e1fd 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
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