真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

openfaas筆記備忘錄怎么使用traefik發(fā)布訪問

今天就跟大家聊聊有關(guān)openfaas筆記備忘錄怎么使用traefik 發(fā)布訪問,可能很多人都不太了解,為了讓大家更加了解,小編給大家總結(jié)了以下內(nèi)容,希望大家根據(jù)這篇文章可以有所收獲。

創(chuàng)新互聯(lián)是一家專注于網(wǎng)站設(shè)計(jì)、網(wǎng)站建設(shè)與策劃設(shè)計(jì),南譙網(wǎng)站建設(shè)哪家好?創(chuàng)新互聯(lián)做網(wǎng)站,專注于網(wǎng)站建設(shè)十年,網(wǎng)設(shè)計(jì)領(lǐng)域的專業(yè)建站公司;建站業(yè)務(wù)涵蓋:南譙等地區(qū)。南譙做網(wǎng)站價格咨詢:18980820575

(1) http發(fā)布訪問

vi  traefik-openfaas-ingress.yaml

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: openfaas-gateway-ingress
  namespace: openfaas
  annotations:
    kubernetes.io/ingress.class: traefik
spec:
  rules:
  - host: openfaas.ghac.xyz
    http:
      paths:
      - backend:
          serviceName: gateway
          servicePort: 8080

kubectl apply -f traefik-openfaas-ingress.yaml

修改 /etc/hosts

127.0.0.1 openfaas.ghac.xyz

訪問

curl  http://openfaas.ghac.xyz/function/gin-demo/ping

(2) https 發(fā)布訪問

vi traefik-openfaas-ingress.yaml

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: openfaas-gateway-ingress
  namespace: openfaas
  annotations:
    kubernetes.io/ingress.class: traefik
spec:
  rules:
  - host: openfaas.ghac.xyz
    http:
      paths:
      - backend:
          serviceName: gateway
          servicePort: 8080
  tls:
    - secretName: openfaas-traefik-tls-cert
---
apiVersion: v1
data:
  tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUR1ekNDQXFPZ0F3SUJBZ0l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zdwMUJLUWI0ZGdEUjBBVHpXZ0VyVzlHNkxJUGJuMGVlZk11VjNLNjNaVllnNklpZ2NpOGZrMGZ6eFgrWQp1aWxSZFBjeGpRS0JnR0JWMXhSU092anlhM2I4VTZaeHJrVStpdVFGS0ZQQUk3Zlg3Qm5RRjkyMkVENVhMTnZkCmNLU1d3SGtEOEVaZWVUVERJQkJSend3cEdmSXRwOUc3MFJXU21RWjhRTzNyUEd5M0ZvUTZiRk1OZVhnQkpRcEIKVWU2MmhOL0M5SXMzWUgxQms5NldoVytPcllzRUs0MUR6ajIrQ05QU1JMVllFZjN2SDBYRFlqYWhBb0dCQUk1agpLUUM5U2kxZHp5Z1hPZ2JvcktOTi8xQm1QbkJ3cjNJU0dZd2puTmxPbll2US95dldnZEQzQndSd1ZULzFOSnNOCm5uNTJ0R2FmMUxUdVB4QnlYM3dFTUJzeTd1R253U2dmazF5YjM5eWZIK3JIL0duT0ZwWWt4eUwzcnZtdCs3eTEKRGxZTmNIbFNOU1Z1aVZxTkJIZkt6cUxCNEV4dG90SUdrZDB0TlJxMUFvR0FGZnZpQ21iRVN0Y1k2anRDZnRFUQpOTlVoaC9RL2RkMXNZRXZZdmUyTkdieDhQbkNaeGhZenZNYWtjNWhvdGxYOXpPTExFd0NNaXVHMXVyR0d5OGcwCndmaXpvVEZRdWh5OC8xdFhDRVRCdlNaRFlyZ0dTa21CNHN0V04xaGJCL3VqVlJhWWoyQnJlVUxhWWRDQkIvbUQKeU5uR01ac2IvQmJLb05yQ2FDam5Rbk09Ci0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0K
kind: Secret
metadata:
  name: openfaas-traefik-tls-cert
  namespace: openfaas
type: Opaque

kubectl apply -f traefik-openfaas-ingress.yaml

修改 /etc/hosts

127.0.0.1 openfaas.ghac.xyz

訪問

curl -k  https://openfaas.ghac.xyz/function/gin-demo/ping  

(3) prometheus

vi openfaas-prometheus-ingress.yaml

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: openfaas-prometheus-ingress
  namespace: openfaas
  annotations:
    kubernetes.io/ingress.class: traefik
spec:
  rules:
  - host: openfaas.prometheus.ghac.xyz
    http:
      paths:
      - backend:
          serviceName: prometheus
          servicePort: 9090

kubectl apply -f  openfaas-prometheus-ingress.yaml

修改 /etc/hosts

127.0.0.1 openfaas.prometheus.ghac.xyz

訪問 http://openfaas.prometheus.ghac.xyz/ui

看完上述內(nèi)容,你們對openfaas筆記備忘錄怎么使用traefik 發(fā)布訪問有進(jìn)一步的了解嗎?如果還想了解更多知識或者相關(guān)內(nèi)容,請關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,感謝大家的支持。


當(dāng)前標(biāo)題:openfaas筆記備忘錄怎么使用traefik發(fā)布訪問
網(wǎng)址分享:http://weahome.cn/article/jphjhe.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部