update services to LoadBalancer
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: snippet-box-ingress
|
||||
namespace: snippet-box
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "snippet-box.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: snippet-box
|
||||
port:
|
||||
number: 5000
|
||||
#apiVersion: networking.k8s.io/v1
|
||||
#kind: Ingress
|
||||
#metadata:
|
||||
# name: snippet-box-ingress
|
||||
# namespace: snippet-box
|
||||
# annotations:
|
||||
# nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
# nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
#spec:
|
||||
# ingressClassName: nginx
|
||||
# rules:
|
||||
# - host: "snippet-box.cluster.edward.sydney"
|
||||
# http:
|
||||
# paths:
|
||||
# - pathType: Prefix
|
||||
# path: "/"
|
||||
# backend:
|
||||
# service:
|
||||
# name: snippet-box
|
||||
# port:
|
||||
# number: 5000
|
||||
@@ -8,10 +8,10 @@ metadata:
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: snippet-box
|
||||
type: ClusterIP
|
||||
type: LoadBalancer
|
||||
internalTrafficPolicy: Cluster
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 5000
|
||||
port: 5055
|
||||
targetPort: 5000
|
||||
name: snippet-box
|
||||
|
||||
Reference in New Issue
Block a user