Guest User

Untitled

a guest
Nov 12th, 2019
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. apiVersion: v1
  2. kind: Service
  3. metadata:
  4. name: esp-api-query
  5. spec:
  6. type: NodePort
  7. ports:
  8. - port: 8081
  9. targetPort: 8081
  10. protocol: TCP
  11. name: http
  12. selector:
  13. app: esp-api-query
  14. ---
  15. apiVersion: extensions/v1beta1
  16. kind: Deployment
  17. metadata:
  18. name: esp-api-query
  19. spec:
  20. replicas: 1
  21. template:
  22. metadata:
  23. labels:
  24. app: esp-api-query
  25. annotations:
  26. sidecar.istio.io/inject: "true"
  27. traffic.sidecar.istio.io/includeOutboundIPRanges: 10.0.0.0/21,10.3.0.0/19
  28. spec:
  29. containers:
  30. - name: api-query
  31. image: X
  32. env:
  33. - name: DD_AGENT_HOST
  34. valueFrom:
  35. fieldRef:
  36. apiVersion: v1
  37. fieldPath: status.hostIP
  38. resources:
  39. requests:
  40. cpu: 15m
  41. ports:
  42. - containerPort: 8081
  43. imagePullSecrets:
  44. - name: gitlab-registry
Advertisement
Add Comment
Please, Sign In to add comment