Skip to content

Commit

Permalink
update to LB Service
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCase committed Dec 23, 2018
1 parent 02b5534 commit 510b552
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions k8s-manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: nook-weather
labels:
component: nook-weather
spec:
replicas: 1
selector:
matchLabels:
component: nook-weather
app: nook-weather
template:
metadata:
labels:
component: nook-weather
app: nook-weather
spec:
containers:
- name: nook-weather
Expand Down Expand Up @@ -48,25 +46,27 @@ metadata:
labels:
component: nook-weather
spec:
type: NodePort
type: LoadBalancer
selector:
component: nook-weather
app: nook-weather
ports:
- name: http
port: 8080
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: nook-weather-ingress
annotations:
kubernetes.io/ingress.class: traefik
spec:
rules:
- host: nook-weather.svc
http:
paths:
# - path: /
- backend:
serviceName: nook-weather
servicePort: 8080
protocol: TCP
targetPort: 8080
#---
#apiVersion: extensions/v1beta1
#kind: Ingress
#metadata:
# name: nook-weather-ingress
# annotations:
# kubernetes.io/ingress.class: traefik
#spec:
# rules:
# - host: nook-weather.svc
# http:
# paths:
## - path: /
# - backend:
# serviceName: nook-weather
# servicePort: 8080

0 comments on commit 510b552

Please sign in to comment.