httpbin-vault.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Copyright 2019 Istio Authors
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. ##################################################################################################
  15. # httpbin service
  16. ##################################################################################################
  17. apiVersion: v1
  18. kind: Service
  19. metadata:
  20. name: httpbin
  21. labels:
  22. app: httpbin
  23. spec:
  24. ports:
  25. - name: http
  26. port: 8000
  27. targetPort: 80
  28. selector:
  29. app: httpbin
  30. ---
  31. apiVersion: apps/v1
  32. kind: Deployment
  33. metadata:
  34. name: httpbin
  35. spec:
  36. replicas: 1
  37. selector:
  38. matchLabels:
  39. app: httpbin
  40. version: v1
  41. template:
  42. metadata:
  43. labels:
  44. app: httpbin
  45. version: v1
  46. spec:
  47. serviceAccountName: vault-citadel-sa
  48. containers:
  49. - image: docker.io/kennethreitz/httpbin
  50. imagePullPolicy: IfNotPresent
  51. name: httpbin
  52. ports:
  53. - containerPort: 80