This is a solution :

- apiVersion: v1
  kind: Service
  metadata:
    name: mysql-service
  spec:
    ports:
      - name: mysql
        protocol: TCP
        port: 3306
        targetPort: 3306
    selector:
      name: mysql-service
    externalIPs:
      - PUBLIC_IP


2016-04-07 11:22 GMT+02:00 Stéphane Klein <[email protected]>:

> It's a way ? http://kubernetes.io/docs/user-guide/services/#external-ips
>
> 2016-04-06 17:19 GMT+02:00 Stéphane Klein <[email protected]>:
>
>> 2016-04-06 17:08 GMT+02:00 Andy Goldstein <[email protected]>:
>>
>>> Port forwarding is a temporary operation - it stays alive as long as you
>>> keep the `oc port-forward` command running. Does this help answer your
>>> question?
>>>
>>
>> Are there nothing to configure permanent port forwarding ? I need to
>> configure one external access to Mysql Server in one pod.
>>
>
>
>
> --
> Stéphane Klein <[email protected]>
> blog: http://stephane-klein.info
> cv : http://cv.stephane-klein.info
> Twitter: http://twitter.com/klein_stephane
>



-- 
Stéphane Klein <[email protected]>
blog: http://stephane-klein.info
cv : http://cv.stephane-klein.info
Twitter: http://twitter.com/klein_stephane
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to