Add a tls-termination example

This commit is contained in:
bprashanth 2017-01-27 17:51:00 -08:00
parent df6f1ab5c6
commit f75ef4a576
8 changed files with 357 additions and 1 deletions

35
examples/http-svc.yaml Normal file
View file

@ -0,0 +1,35 @@
apiVersion: v1
kind: Service
metadata:
name: http-svc
labels:
app: http-svc
spec:
type: NodePort
ports:
- port: 80
# This port needs to be available on all nodes in the cluster
nodePort: 30301
targetPort: 8080
protocol: TCP
name: http
selector:
app: http-svc
---
apiVersion: v1
kind: ReplicationController
metadata:
name: http-svc
spec:
replicas: 2
template:
metadata:
labels:
app: http-svc
spec:
containers:
- name: http-svc
image: gcr.io/google_containers/echoserver:1.3
ports:
- containerPort: 8080