Last active
          November 8, 2020 09:50 
        
      - 
      
 - 
        
Save mprkatti/fb98c28e8cb75b46f842eb40b0c4011c to your computer and use it in GitHub Desktop.  
    ftp server service
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: common-ftp-svc | |
| namespace: myns | |
| spec: | |
| type: ClusterIP | |
| ports: | |
| - port: 21 | |
| protocol: TCP | |
| targetPort: 21 | |
| selector: | |
| run: common-ftp-server | |
| status: | |
| loadBalancer: {} | |
| --- | |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| labels: | |
| run: common-ftp-server | |
| name: common-ftp-server | |
| namespace: myns | |
| spec: | |
| containers: | |
| - args: | |
| - sh | |
| - -c | |
| - mkdir /var/ftp && chmod ugo+rw /var/ftp && tcpsvd -vE 0.0.0.0 21 ftpd -Aw /var/ftp | |
| image: busybox | |
| name: ftp-server | |
| ports: | |
| - containerPort: 21 | |
| resources: {} | |
| dnsPolicy: ClusterFirst | |
| restartPolicy: Always | |
| status: {} | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment