tokers commented on a change in pull request #153:
URL: 
https://github.com/apache/apisix-ingress-controller/pull/153#discussion_r552300356



##########
File path: charts/ingress-apisix/templates/service.yaml
##########
@@ -0,0 +1,31 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+apiVersion: v1
+kind: Service
+metadata:
+  name: {{ include "ingress-apisix.fullname" . }}
+  labels:
+    {{- include "ingress-apisix.labels" . | nindent 4 }}
+spec:
+  type: {{ .Values.ingressController.service.type }}
+  ports:
+    - port: {{ .Values.ingressController.service.port }}
+      targetPort: http

Review comment:
       targetPort can be the port number or port name:
   
   > Number or name of the port to access on the pods targeted by the service. 
Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this 
is a string, it will be looked up as a named port in the target Pod's container 
ports. If this is not specified, the value of the 'port' field is used (an 
identity map). This field is ignored for services with clusterIP=None, and 
should be omitted or set equal to the 'port' field. More info: 
https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service
   --
   
   
   




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to