Skip to content

hendras8/ingress-endpoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ingress-endpoint

infrastructure-Diagram-Page-6 drawio

the case I made was to create an ingress followed by an endpoint to point to the vm , and you can also use to point to the pod .

Requirements

Name Version
[kustomize](#requirement_kustomize ~> v4.5.4

Provision Instructions

 kustomize build .                #--> check manifest to make sure the manifest is correct
 

apiVersion: v1
kind: Namespace
metadata:
  name: ingress-pool
---
apiVersion: v1
kind: Endpoints
metadata:
  name: sonar-svc
  namespace: ingress-pool
subsets:
- addresses:
  - ip: 192.168.1.2
  ports:
  - port: 8080
    protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
  name: sonar-svc
  namespace: ingress-pool
spec:
  ports:
  - port: 443
    protocol: TCP
    targetPort: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    ingress.kubernetes.io/ssl-redirect: "true"
    kubernetes.io/ingress.class: nginx-external
    nginx.ingress.kubernetes.io/backend-protocol: HTTP
    nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
    nginx.ingress.kubernetes.io/whitelist-source-range: 192.0.0.0/16 
  name: sonar-ing
  namespace: ingress-pool
spec:
  rules:
  - host: sonar.dodol.com
    http:
      paths:
      - backend:
          service:
            name: sonar-svc
            port:
              number: 443
        path: /
        pathType: ImplementationSpecific


 kustomize build . | kubectl apply -f -     #--> for apply manifest
 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published