apiVersion: apps/v1 kind: Deployment metadata: labels: app: httpbin name: httpbin spec: replicas: 3 selector: matchLabels: app: httpbin template: metadata: labels: app: httpbin spec: containers: - image: docker.io/kennethreitz/httpbin name: httpbin --- apiVersion: v1 kind: Service metadata: labels: app: httpbin name: httpbin spec: ports: - port: 80 protocol: TCP targetPort: 80 selector: app: httpbin sessionAffinity: None type: ClusterIP