Guest User

Untitled

a guest
Mar 24th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: aspnetcore
  5. labels:
  6. name: aspnetcore
  7. owner: Bindu
  8. spec:
  9. type: NodePort
  10. ports:
  11. - port: 8001
  12. targetPort: 80
  13. selector:
  14. app: aspnetcore
  15.  
  16. ---
  17. apiVersion: apps/v1
  18. kind: Deployment
  19. metadata:
  20. name: aspnetcore
  21. labels:
  22. name: aspnetcore
  23. spec:
  24. selector:
  25. matchLabels:
  26. app: aspnetcore
  27. template:
  28. metadata:
  29. labels:
  30. app: aspnetcore
  31. owner: Bindu
  32. spec:
  33. containers:
  34. - image: bindukaladeepan/corewebappsimple:3.0
  35. name: corewebappsimple
  36. env:
  37. # This will help in displaying full error
  38. - name: ASPNETCORE_ENVIRONMENT
  39. value: Development
  40. - name: MYSQLCONNECTION
  41. value: server=db;port=3306;database=sakila;user=root;password=bindu123
  42. ports:
  43. - containerPort: 80
  44. restartPolicy: Always
Add Comment
Please, Sign In to add comment