Skip to content

Instantly share code, notes, and snippets.

@rdemorais
Created January 26, 2020 22:10
Show Gist options
  • Save rdemorais/b691e0eb3686093a915780a29f91a2c8 to your computer and use it in GitHub Desktop.
Save rdemorais/b691e0eb3686093a915780a29f91a2c8 to your computer and use it in GitHub Desktop.
Serviço web simples
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: web
namespace: default
spec:
selector:
matchLabels:
run: web
template:
metadata:
labels:
run: web
spec:
containers:
- image: gcr.io/google-samples/hello-app:1.0
imagePullPolicy: IfNotPresent
name: web
ports:
- containerPort: 8080
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: web
namespace: default
spec:
ports:
- name: webnodeport
port: 8080
targetPort: 8080
nodePort: 32004
selector:
run: web
type: NodePort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment