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