Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deployment in K8S... don't get it. #31

Open
strus38 opened this issue May 2, 2020 · 0 comments
Open

deployment in K8S... don't get it. #31

strus38 opened this issue May 2, 2020 · 0 comments

Comments

@strus38
Copy link

strus38 commented May 2, 2020

Hi
I am trying to use your container inside K8S, but I don't get it.
Here is my deployment file:

kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: tftp-nfs
  namespace: ftpsvc
  labels:
    app.name: tftpd
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 4Gi
  volumeName: tftp-nfs
  volumeMode: Filesystem
---
apiVersion: v1
kind: Service
metadata:
  name: tftpd
  namespace: ftpsvc
  labels:
    app.name: tftpd
spec:
  type: LoadBalancer
  loadBalancerIP: 192.168.1.199
  ports:
    - port: 69
      targetPort: tftpd
      protocol: UDP
      name: tftpd
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: tftpd
  namespace: ftpsvc
  labels:
    app.name: tftpd
spec:
  replicas: 1
  selector:
    matchLabels:
      app.name: tftpd
  template:
    metadata:
      labels:
        app.name: tftpd
    spec:
      containers:
        - name: tftpd
          image: jumanjiman/tftp-hpa:latest
          imagePullPolicy: Always
          ports:
            - name: tftpd
              containerPort: 69
              protocol: UDP
          resources:
            limits:
              cpu: 100m
              memory: 128Mi
            requests:
              cpu: 100m
              memory: 128Mi
          volumeMounts:
            - name: tftp-nfs
              mountPath: /tftpboot
              readOnly: false
      volumes:
        - name: tftp-nfs
          persistentVolumeClaim:
            claimName: tftp-nfs

So basically, trying to mount in /tftpboot on my NFS mount.
Did you ever try it in K8S?
Do you have a sample deployment file?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant