Trouble connecting a load balancer to my webserver. Using EKS, kompose and nginx.

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

I used kompose to convert my functioning docker-compose.yml to work in a Kubernetes world. Below is the webserver service yaml it created. The issue I am having is I can not figure out how to get the load balancer connected to it? Note that I am using AWS EKS services to house my environment. In the Docker compose world it did not use a load balancer so this is a new component for me to add. What does the “Status: loadbalancer{} represent? Should there be a way to add the bring up of the loadbalancer in this Webserver service yaml or do I also need a loadbalancer service yaml? I assume you point the loadbalancer port 80 to the target port 80 of the webserver??? Doesn’t that make the connection between the two? How do i make the connection with both 80 and 443? ​ I did create a loadbalancer service yaml (see below) but I can not seem to get them it to be connected to the webserver. I am a newbie but I think I am soooo close! Just hard to wrap my head around how to connect one thing to another. Thanks for any guidance!!!! ​ Webserver service yaml: apiVersion: v1 kind: Service metadata: annotations: kompose.cmd: kompose convert kompose.version: 1.19.0 (f63a961c) creationTimestamp: null labels: io.kompose.service: webserver name: webserver spec: ports: – name: “80” port: 80 targetPort: 80 – name: “443” port: 443 targetPort: 443 selector: io.kompose.service: webserver status: loadBalancer: {} ​ Loadbalancer service yaml: — apiVersion: v1 kind: Service metadata: name: loadbalancer spec: type: LoadBalancer ports: – port: 80 targetPort: 80 selector: app: webserver ​ ​ In case it is needed to be looked at- Webserver deployment yaml: spec: replicas: 1 strategy: type: Recreate template: metadata: annotations: kompose.cmd: kompose convert kompose.version: 1.19.0 (f63a961c) creationTimestamp: null labels: io.kompose.service: webserver spec: containers: – image: nginx:alpine name: webserver ports: – containerPort: 80 – containerPort: 443 resources: {} tty: true volumeMounts: – mountPath: /var/www name: webserver-claim0 – mountPath: /etc/nginx/conf.d/ name: webserver-claim1 – mountPath: /etc/link-ssl/private/ name: webserver-claim2 – mountPath: /etc/link-ssl/certs/ name: webserver-claim3 restartPolicy: Always volumes: – name: webserver-claim0 persistentVolumeClaim: claimName: webserver-claim0 – name: webserver-claim1 persistentVolumeClaim: claimName: webserver-claim1 – name: webserver-claim2 persistentVolumeClaim: claimName: webserver-claim2 – name: webserver-claim3 persistentVolumeClaim: claimName: webserver-claim3 status: {} submitted by /u/ernievd [link] [comments]

X ITM Cloud News

Patricia

Leave a Reply

Next Post

Docker Linux , running on Windows.

Tue Jun 30 , 2020
Spread the love          If I have a Linux process, and I don’t want to port it to Windows, how wise it to have a Linux container running on Windows? submitted by /u/YellowSea11 [link] [comments] X ITM Cloud News
X- ITM

Cloud Computing – Consultancy – Development – Hosting – APIs – Legacy Systems

X-ITM Technology helps our customers across the entire enterprise technology stack with differentiated industry solutions. We modernize IT, optimize data architectures, and make everything secure, scalable and orchestrated across public, private and hybrid clouds.

This image has an empty alt attribute; its file name is x-itmdc.jpg

The enterprise technology stack includes ITO; Cloud and Security Services; Applications and Industry IP; Data, Analytics and Engineering Services; and Advisory.

Watch an animation of  X-ITM‘s Enterprise Technology Stack

We combine years of experience running mission-critical systems with the latest digital innovations to deliver better business outcomes and new levels of performance, competitiveness and experiences for our customers and their stakeholders.

X-ITM invests in three key drivers of growth: People, Customers and Operational Execution.

The company’s global scale, talent and innovation platforms serve 6,000 private and public-sector clients in 70 countries.

X-ITM’s extensive partner network helps drive collaboration and leverage technology independence. The company has established more than 200 industry-leading global Partner Network relationships, including 15 strategic partners: Amazon Web Services, AT&T, Dell Technologies, Google Cloud, HCL, HP, HPE, IBM, Micro Focus, Microsoft, Oracle, PwC, SAP, ServiceNow and VMware

.

X ITM