Skip to content

Commit

Permalink
use ingress to serve pong app with tls-secret
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Keene committed Dec 21, 2018
1 parent e4a87a6 commit bf0c15f
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions k8s/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,31 @@ spec:
kind: Service
apiVersion: v1
metadata:
name: pong
name: pong
annotations:
cloud.google.com/app-protocols: '{"frontend":"HTTPS","frontend":"HTTP"}'
service.alpha.kubernetes.io/app-protocols: '{"frontend":"HTTPS","frontend":"HTTP"}'
spec:
type: LoadBalancer
type: NodePort
selector:
app: pong
ports:
- name: backend
protocol: TCP
port: 81
port: 8081
targetPort: 8080
- name: frontend
protocol: TCP
port: 80
port: 8080
targetPort: 3000
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: pong-ingress
spec:
tls:
- secretName: tls-secret
backend:
serviceName: pong
servicePort: 8080

0 comments on commit bf0c15f

Please sign in to comment.