Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

some question about containerPort #372

Open
malixian opened this issue Oct 26, 2019 · 0 comments
Open

some question about containerPort #372

malixian opened this issue Oct 26, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@malixian
Copy link

What are the steps to reproduce this issue?

1.create two pod with the same yaml to run mpi workload in that two pod
2.lunch a container in one pod using "kubectl exec -it xx-pod /bin/bash"
3.by ssh to lunch another pod but error ssh: connect to host 172.30.48.34 port 22: Connection refused, meanwhile i can't ssh to the host (ip is 10.18.127.3) due to 'ssh: connect to host 10.18.127.3 port 22: Network is unreachable'

yaml is :

apiVersion: v1
kind: Pod
metadata:
  name: mpi-test-4
spec:
  containers:
    - command:
        - /bin/sh
        - -c
        - |
          mkdir -p /var/run/sshd; /usr/sbin/sshd -D; sleep 600;
      image: volcanosh/example-mpi:0.0.1
      name: mpi-test-4
      ports:
        - containerPort: 22
          name: mpijob-port
      workingDir: /home
  nodeSelector:
     kubernetes.io/hostname: k8s03
  restartPolicy: OnFailure
@malixian malixian added the bug Something isn't working label Oct 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant