apiVersion: v1
kind: Pod
metadata:
  name: mubu71
  labels:
    app: mubu7
spec:
  containers:
  - name: mubu711
    image: dockreg:5000/mubu7:v7
    imagePullPolicy: Always
    ports:
    - containerPort: 5011
    command: ["/bin/bash","-c"]
    args: 
    - echo starting;
      echo CONT=\"mubu711_5011_spring\" >> /root/.bashrc;
      touch /mubu711_5011_spring;
      sed -i 's/#Port 22/Port 5011/g' /etc/ssh/sshd_config;
      sleep 3650d;
      echo done;
  - name: mubu712
    image: dockreg:5000/mubu7:v7
    imagePullPolicy: Always
    ports:
    - containerPort: 5012
    command: ["/bin/bash","-c"]
    args: 
    - echo starting;
      echo CONT=\"mubu712_5012_spring\" >> /root/.bashrc;
      touch /mubu712_5012_spring;
      sed -i 's/#Port 22/Port 5012/g' /etc/ssh/sshd_config;
      sleep 3650d;
      echo done;
  imagePullSecrets:
  - name: regcred
  nodeName: spring
  restartPolicy: Always
---
apiVersion: v1
kind: Pod
metadata:
  name: mubu72
  labels:
    app: mubu7
spec:
  containers:
  - name: mubu721
    image: dockreg:5000/mubu7:v7
    imagePullPolicy: Always
    ports:
    - containerPort: 5021
    command: ["/bin/bash","-c"]
    args: 
    - echo starting;
      echo CONT=\"mubu721_5021_island\" >> /root/.bashrc;
      touch /mubu721_5021_island;
      sed -i 's/#Port 22/Port 5021/g' /etc/ssh/sshd_config;
      sleep 3650d;
      echo done;
  - name: mubu722
    image: dockreg:5000/mubu7:v7
    imagePullPolicy: Always
    ports:
    - containerPort: 5022
    command: ["/bin/bash","-c"]
    args: 
    - echo starting;
      echo CONT=\"mubu722_5022_island\" >> /root/.bashrc;
      touch /mubu722_5022_island;
      sed -i 's/#Port 22/Port 5022/g' /etc/ssh/sshd_config;
      sleep 3650d;
      echo done;
  imagePullSecrets:
  - name: regcred
  nodeName: island
  restartPolicy: Always