Skip to content

Commit

Permalink
elb-tls
Browse files Browse the repository at this point in the history
  • Loading branch information
wardviaene committed Jul 30, 2018
1 parent 4778ed0 commit 4de625b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
24 changes: 24 additions & 0 deletions elb-tls/helloworld-service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v1
kind: Service
metadata:
name: helloworld-service
annotations:
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: "arn:aws:acm:region:accountid:certificate/..." #replace this value
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "http"
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"
service.beta.kubernetes.io/aws-load-balancer-connection-draining-enabled: "true"
service.beta.kubernetes.io/aws-load-balancer-connection-draining-timeout: "60"
service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags: "environment=dev,app=helloworld"
spec:
ports:
- name: http
port: 80
targetPort: nodejs-port
protocol: TCP
- name: https
port: 443
targetPort: nodejs-port
protocol: TCP
selector:
app: helloworld
type: LoadBalancer
17 changes: 17 additions & 0 deletions elb-tls/helloworld.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: helloworld-deployment
spec:
replicas: 3
template:
metadata:
labels:
app: helloworld
spec:
containers:
- name: k8s-demo
image: wardviaene/k8s-demo
ports:
- name: nodejs-port
containerPort: 3000

0 comments on commit 4de625b

Please sign in to comment.