适用于python应用程序的AWS ALB入口控制器和入口资源

问题描述

我在此链接https://kubernetes.io/blog/2019/07/23/get-started-with-kubernetes-using-python/之后创建了python应用。我想配置AWS ALB Ingress Controller/nginx controlleringress resource,但无法理解该文件。我没有在ec2-instance上使用Kops的域,想要在没有任何域的情况下配置它。任何帮助将不胜感激。

部署:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: hello-python
spec:
  selector:
    matchLabels:
      app: hello-python
  template:
    metadata:
      labels:
        app: hello-python
    spec:
      containers:
      - name: hello-python
        image: hello-python:latest
        ports:
        - containerPort: 5000

服务

apiVersion: v1
kind: Service
metadata:
  name: hello-python-service
spec:
  selector:
    app: hello-python
  type: NodePort
  ports:
    - nodePort: 30010
      port: 6000
      targetPort: 5000

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)