标签搜索

【开发日志】traefik 配置代理

dforel
2021-04-14 / 0 评论 / 0 阅读 / 正在检测是否收录...
apiVersion: v1 kind: Endpoints metadata: labels: k8s-app: arcgis-proxy name: arcgis-proxy namespace: xxx subsets: - addresses: - ip: ip ports: - name: http port: 80 protocol: TCP --- apiVersion: v1 kind: Service metadata: labels: k8s-app: arcgis-proxy name: arcgis-proxy namespace: xxx spec: ports: - name: http port: 80 protocol: TCP targetPort: 80 type: ClusterIP --- apiVersion: traefik.containo.us/v1alpha1 kind: IngressRoute metadata: labels: app: arcgis-proxy name: arcgis-proxy namespace: xxx spec: entryPoints: - web routes: - kind: Rule match: Host(`ip`) && PathPrefix(`/arcgis-proxy/`) middlewares: - name: pathprefix-strip services: - name: arcgis-proxy port: 80
0

评论 (0)