You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/05/09 06:07:40 UTC

[GitHub] [incubator-openwhisk-deploy-kube] neerajmangal opened a new issue #460: "seviceName" missing in invoker-pod if ContainerFactory impl is of type "Kubernetes"

neerajmangal opened a new issue #460: "seviceName" missing in invoker-pod if ContainerFactory impl is of type "Kubernetes"
URL: https://github.com/apache/incubator-openwhisk-deploy-kube/issues/460
 
 
   <!--
   We use the issue tracker for bugs and feature requests. For general questions and discussion please use http://slack.openwhisk.org/ or https://openwhisk.apache.org/contact.html instead.
   
   Do NOT share passwords, credentials or other confidential information.
   
   Before creating a new issue, please check if there is one already open that
   fits the defect you are reporting.
   If you open an issue and realize later it is a duplicate of a pre-existing
   the open issue, please close yours and add a comment to the other.
   
   Issues can be created for either defects or enhancement requests. If you are a committer than please add the labels "bug" or "feature". If you are not a committer please make clear in the comments which one it is, so that committers can add these labels later.
   
   If you are reporting a defect, please edit the issue description to include the
   information is shown below.
   
   If you are reporting an enhancement request, please include information on what you are trying to achieve and why that enhancement would help you.
   
   For more information about reporting issues, see
   https://github.com/apache/incubator-openwhisk/blob/master/CONTRIBUTING.md#raising-issues
   
   Use the commands below to provide key information from your environment:
   You do not have to include this information if this is a feature request.
   -->
   
   ## Description 
   
   When "Kubernetes" is selected as `ContainerFactoryImpl`, invoker pods are deployed as `StatefulSet` instead of `DaemonSet`. A StatefulSet requires `serviceName` as a mandatory field in the spec which is missing in the generated pod yaml.  
   
   ```
   error validating data: ValidationError(StatefulSet.spec): missing required field "serviceName" 
   in io.k8s.api.apps.v1.StatefulSetSpec; 
   if you choose to ignore these errors, turn validation off with --validate=false
   ```
   ## Steps to reproduce the issue:
   
   In mycluster.yml, select "kubernetes" as ContainerFactoryImpl. 
   
   ```yaml
   invoker:
     containerFactory:
       impl: "kubernetes"
   ```
   
   # Solution 
   
   ## Changes 
   
   - Add "serviceName" in pod template. 
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services