You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/05/30 02:00:50 UTC

[GitHub] [apisix-helm-chart] SRCchen commented on issue #301: [Suggestion] 添加hostPort支持

SRCchen commented on issue #301:
URL: https://github.com/apache/apisix-helm-chart/issues/301#issuecomment-1140603065

   目前的helm chart 好像不支持hostPort ,考虑到有作为ingress使用的情况,是否可以在chart中添加hostPort 选项,具体如下:
   ```yaml
   http:
   137     enabled: true
   138     servicePort: 80
   139     containerPort: 9080
   140     hostPort: 80  # add http hostPort
   141   tls:
   142     enabled: false
   143     servicePort: 443
   144     hostPort: 443  # add tls  hostPort
   145     containerPort: 9443
   146     existingCASecret: ""
   147     certCAFilename: ""
   148     http2:
   149       enabled: true
   ```
   `templates/daemonset.yaml`  or `templates/daemonset.yaml`:
   ```yaml
   ...
    52           imagePullPolicy: {{ .Values.apisix.image.pullPolicy }}
    53           ports:
    54             - name: http
    55               containerPort: {{ .Values.gateway.http.containerPort }}
    56               protocol: TCP
    57               hostPort: {{ .Values.gateway.http.hostPort }} # add http hostPort
    58             - name: tls
    59               containerPort: {{ .Values.gateway.tls.containerPort }}
    60               protocol: TCP
    61               hostPort: {{ .Values.gateway.tls.hostPort }} # add tls  hostPort
    62             {{- if .Values.admin.enabled }}
    63             - name: admin
    64               containerPort: {{ .Values.admin.port }}
    65               protocol: TCP
    66             {{- end }}
   ...
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org