serviceA-deployment.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #! serviceA-deployment.yaml
  2. # Generated code, do not edit
  3. apiVersion: apps/v1
  4. kind: Deployment
  5. metadata:
  6. name: servicea
  7. namespace: bridge
  8. labels:
  9. com.docker.compose.project: bridge
  10. com.docker.compose.service: serviceA
  11. spec:
  12. replicas: 1
  13. selector:
  14. matchLabels:
  15. com.docker.compose.project: bridge
  16. com.docker.compose.service: serviceA
  17. strategy:
  18. type: Recreate
  19. template:
  20. metadata:
  21. labels:
  22. com.docker.compose.project: bridge
  23. com.docker.compose.service: serviceA
  24. com.docker.compose.network.private-network: "true"
  25. spec:
  26. containers:
  27. - name: servicea
  28. image: alpine
  29. imagePullPolicy: IfNotPresent
  30. ports:
  31. - name: servicea-8080
  32. containerPort: 8080
  33. volumeMounts:
  34. - name: etc-my-config1-txt
  35. mountPath: /etc/my-config1.txt
  36. subPath: my-config
  37. readOnly: true
  38. volumes:
  39. - name: etc-my-config1-txt
  40. configMap:
  41. name: bridge
  42. items:
  43. - key: my-config
  44. path: my-config