apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: consumer | |
labels: | |
app: consumer | |
spec: | |
selector: | |
matchLabels: | |
app: consumer | |
template: | |
metadata: | |
labels: | |
app: consumer | |
spec: | |
containers: | |
- name: consumer | |
image: consumer:dev | |
ports: | |
- containerPort: 8080 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: consumer | |
spec: | |
type: NodePort | |
selector: | |
app: consumer | |
ports: | |
- name: http | |
port: 8080 |