test.yaml 592 B

12345678910111213141516171819202122232425262728293031323334
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: hello-kubernetes
  5. namespace: arcadis
  6. spec:
  7. replicas: 1
  8. selector:
  9. matchLabels:
  10. app: hello-kubernetes
  11. template:
  12. metadata:
  13. labels:
  14. app: hello-kubernetes
  15. spec:
  16. containers:
  17. - name: hello-kubernetes
  18. image: hashicorp/http-echo
  19. args:
  20. - "-text=Arca"
  21. ports:
  22. - containerPort: 5678
  23. ---
  24. apiVersion: v1
  25. kind: Service
  26. metadata:
  27. name: hello-kubernetes
  28. namespace: arcadis
  29. spec:
  30. selector:
  31. app: hello-kubernetes
  32. ports:
  33. - port: 80
  34. targetPort: 5678