gogs-deployment.yaml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. apiVersion: extensions/v1beta1
  2. kind: Deployment
  3. metadata:
  4. annotations:
  5. io.rancher.container.pull_image: always
  6. kompose.cmd: migration-tools parse --docker-file docker-compose.yml --rancher-file
  7. rancher-compose.yml
  8. kompose.version: 1.16.0 (HEAD)
  9. creationTimestamp: null
  10. labels:
  11. io.kompose.service: gogs
  12. name: gogs
  13. spec:
  14. replicas: 0
  15. strategy:
  16. type: Recreate
  17. template:
  18. metadata:
  19. creationTimestamp: null
  20. labels:
  21. io.kompose.service: gogs
  22. spec:
  23. containers:
  24. - env:
  25. - name: DISABLE_REGISTRATION
  26. value: "true"
  27. - name: RUN_CROND
  28. value: "true"
  29. - name: SHOW_REGISTRATION_BUTTON
  30. value: "false"
  31. image: gogs/gogs:latest
  32. name: gogs
  33. ports:
  34. - containerPort: 22
  35. - containerPort: 3000
  36. resources: {}
  37. volumeMounts:
  38. - mountPath: /data
  39. name: gogs-claim0
  40. restartPolicy: Always
  41. volumes:
  42. - name: gogs-claim0
  43. persistentVolumeClaim:
  44. claimName: gogs-claim0
  45. status: {}