apiVersion: apps/v1 kind: Deployment metadata: name: hello-kubernetes labels: app: hello-kubernetes spec: replicas: 1 selector: matchLabels: app: hello-kubernetes template: metadata: labels: app: hello-kubernetes spec: containers: - name: hello-kubernetes image: paulbouwer/hello-kubernetes:1.10 resources: requests: memory: "750Mi" cpu: "250m" limits: memory: "1Gi" cpu: "500m" ports: - name: http containerPort: 80 protocol: TCP --- apiVersion: v1 kind: Service metadata: name: hello-kubernetes-service labels: app: hello-kubernetes spec: type: ClusterIP ports: - port: 80 targetPort: http protocol: TCP name: http selector: app: hello-kubernetes