title: kubernetes create a service with domain at the end
body: <p>I created a gossip cluster in AWS using <strong>kops</strong>, which means my cluster name is  ending with <strong>k8s.local</strong> (clusters.test.k8s.local to be exected ),
  All is working fine until I tried to create a deployment where the pod name needs to be with a domain at the end (api-manager.iot.test.co.nz).</p>
  
  <p>I know that it is not authorized to create pods that are not standing in the requirements os this regex:</p>
  
  <pre><code>'[a-z]([-a-z0-9]*[a-z0-9])?'
  </code></pre>
  
  <p>Is there a way I can do that?</p>
  
  <p>I tried adding hostname under template->spec but it has the same restrictions (the regex).</p>
  
  <p>This is my deployment YAML file:</p>
  
  <pre><code>apiVersion: apps/v1beta1
  kind: Deployment
  metadata:
    labels:
    name: api-manager
  spec:
    replicas: 1
    template:
      metadata:
        labels:
          app: api-manager
      spec:
        volumes:
         - name: api-manager-efs
           persistentVolumeClaim:
            claimName: pvc-apim
        containers:
        - image: api-manager:2.1.0
          name: api-manager.iot.test.co.nz
          ports:
          - name: porta 
            containerPort: 9763
          - name: portb
            containerPort: 9443         
          env:
          - name: SLEEP
            value: "30"
  
          volumeMounts:
          - name: api-manager-efs
            mountPath: /home/wso2carbon/wso2am-2.1.0/repository 
  </code></pre>