httpbin.yaml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Copyright 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: ServiceAccount
  19. metadata:
  20. name: httpbin
  21. ---
  22. apiVersion: v1
  23. kind: Service
  24. metadata:
  25. name: httpbin
  26. labels:
  27. app: httpbin
  28. spec:
  29. ports:
  30. - name: http
  31. port: 8000
  32. targetPort: 80
  33. selector:
  34. app: httpbin
  35. ---
  36. apiVersion: apps/v1
  37. kind: Deployment
  38. metadata:
  39. name: httpbin
  40. spec:
  41. replicas: 1
  42. selector:
  43. matchLabels:
  44. app: httpbin
  45. version: v1
  46. template:
  47. metadata:
  48. labels:
  49. app: httpbin
  50. version: v1
  51. spec:
  52. serviceAccountName: httpbin
  53. containers:
  54. - image: docker.io/kennethreitz/httpbin
  55. imagePullPolicy: IfNotPresent
  56. name: httpbin
  57. ports:
  58. - containerPort: 80