91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

openfaas筆記備忘錄怎么使用traefik 發布訪問

發布時間:2022-01-05 09:21:10 來源:億速云 閱讀:305 作者:柒染 欄目:云計算

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

(1) http發布訪問

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 發布訪問

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: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUR1ekNDQXFPZ0F3SUJBZ0lKQU10NUZIcjNWcStJTUEwR0NTcUdTSWIzRFFFQkN3VUFNSFF4Q3pBSkJnTlYKQkFZVEFrZGFNUXN3Q1FZRFZRUUlEQUpIUkRFTE1Ba0dBMVVFQnd3Q1Ixb3hEVEFMQmdOVkJBb01CRWRJUVVNeApEVEFMQmdOVkJBc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nZkCmNLU1d3SGtEOEVaZWVUVERJQkJSend3cEdmSXRwOUc3MFJXU21RWjhRTzNyUEd5M0ZvUTZiRk1OZVhnQkpRcEIKVWU2MmhOL0M5SXMzWUgxQms5NldoVytPcllzRUs0MUR6ajIrQ05QU1JMVllFZjN2SDBYRFlqYWhBb0dCQUk1agpLUUM5U2kxZHp5Z1hPZ2JvcktOTi8xQm1QbkJ3cjNJU0dZd2puTmxPbll2US95dldnZEQzQndSd1ZULzFOSnNOCm5uNTJ0R2FmMUxUdVB4QnlYM3dFTUJzeTd1R253U2dmazF5YjM5eWZIK3JIL0duT0ZwWWt4eUwzcnZtdCs3eTEKRGxZTmNIbFNOU1Z1aVZxTkJIZkt6cUxCNEV4dG90SUdrZDB0TlJxMUFvR0FGZnZpQ21iRVN0Y1k2anRDZnRFUQpOTlVoaC9RL2RkMXNZRXZZdmUyTkdieDhQbkNaeGhZenZNYWtjNWhvdGxYOXpPTExFd0NNaXVHMXVyR0d5OGcwCndmaXpvVEZRdWh5OC8xdFhDRVRCdlNaRFlyZ0dTa21CNHN0V04xaGJCL3VqVlJhWWoyQnJlVUxhWWRDQkIvbUQKeU5uR01ac2IvQmJLb05yQ2FDam5Rbk09Ci0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0K
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

看完上述內容,你們對openfaas筆記備忘錄怎么使用traefik 發布訪問有進一步的了解嗎?如果還想了解更多知識或者相關內容,請關注億速云行業資訊頻道,感謝大家的支持。

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

镇安县| 汶川县| 新津县| 黎川县| 武平县| 陈巴尔虎旗| 长白| 庄浪县| 柳江县| 塔河县| 塔城市| 保靖县| 栾川县| 类乌齐县| 英山县| 盐池县| 余姚市| 甘孜县| 奎屯市| 环江| 航空| 嘉义市| 建宁县| 赣榆县| 台安县| 涪陵区| 大竹县| 湘阴县| 德兴市| 和平区| 梧州市| 长顺县| 滕州市| 高清| 武宁县| 黄石市| 准格尔旗| 舟曲县| 柳河县| 怀仁县| 长垣县|