Skip to content

Commit

Permalink
refactoring yml files
Browse files Browse the repository at this point in the history
  • Loading branch information
prashantgupta24 committed Jun 24, 2020
1 parent 57b7c89 commit d891193
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
11 changes: 1 addition & 10 deletions k8s/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: firewalld-ingress
#Remove annotations block in case you don't want to use SSL using letsenrypt
annotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
rules:
- host: <your-host-name>
Expand All @@ -23,9 +19,4 @@ spec:
- path: /m3
backend:
serviceName: external-rest-3
servicePort: 80
#Remove TLS block in case you don't want to use SSL
tls:
- secretName: "host1-tls"
hosts:
- <your-host-name>
servicePort: 80
6 changes: 3 additions & 3 deletions k8s/svc.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: external-rest
name: external-rest #external-rest-2 for 2nd machine and so on
spec:
ports:
- name: firewalld
Expand All @@ -12,10 +12,10 @@ spec:
apiVersion: v1
kind: Endpoints
metadata:
name: external-rest
name: external-rest #external-rest-2 for 2nd machine and so on
subsets:
- addresses:
- ip: 10.xx.xx.xx #private IP of server
- ip: 10.xx.xx.xx #private IP of node
ports:
- port: 8080
name: firewalld

0 comments on commit d891193

Please sign in to comment.