title: defining 2 ports in deployment.yaml in Kubernetes
body: <p>I have a docker image from I am doing </p>
  
  <pre><code>docker run --name test -h test -p 9043:9043 -p 9443:9443 -d ibmcom/websphere-traditional:install
  </code></pre>
  
  <p>I am trying to put into a kubernetes deploy file and I have this: </p>
  
  <pre><code>apiVersion: extensions/v1beta1
  kind: Deployment
  metadata:
    name: websphere
  spec:
    replicas: 1
    template:
      metadata:
        labels:
          app: websphere
      spec:
        containers:
        - name: websphere
          image: ibmcom/websphere-traditional:install
          ports:
          - containerPort: 9443
          resources:
            requests: 
              memory: 500Mi
              cpu: 0.5
            limits:
              memory: 500Mi
              cpu: 0.5
          imagePullPolicy: Always
  </code></pre>
  
  <p>my service.yaml</p>
  
  <pre><code>apiVersion: v1
  kind: Service
  metadata:
    name: websphere
    labels:
      app: websphere
  spec:
    type: NodePort #Exposes the service as a node ports
    ports:
    - port: 9443
      protocol: TCP
      targetPort: 9443
    selector:
      app: websphere
  </code></pre>
  
  <p>May I have guidance on how to map 2 ports in my deployment file?</p>