apiVersion: v1 kind: Namespace metadata: name: httpbin --- apiVersion: v1 kind: ServiceAccount metadata: name: httpbin namespace: httpbin --- apiVersion: v1 kind: Service metadata: name: httpbin namespace: httpbin labels: app: httpbin service: httpbin spec: ports: - name: http port: 8000 targetPort: 80 selector: app: httpbin --- apiVersion: apps/v1 kind: Deployment metadata: name: httpbin namespace: httpbin spec: replicas: 1 selector: matchLabels: app: httpbin version: v1 template: metadata: labels: app: httpbin version: v1 spec: serviceAccountName: httpbin containers: - image: docker.io/kennethreitz/httpbin imagePullPolicy: IfNotPresent name: httpbin ports: - containerPort: 80