Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chrishamant/98707549290e699c301b9d6ddc8bb57c to your computer and use it in GitHub Desktop.
Save chrishamant/98707549290e699c301b9d6ddc8bb57c to your computer and use it in GitHub Desktop.
### Example Nginx Hello World
```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-web
spec:
replicas: 1
selector:
matchLabels:
app: hello-web
template:
metadata:
labels:
app: hello-web
spec:
containers:
- name: nginx
image: nginx:stable-alpine
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: hello-web-svc
spec:
type: NodePort
selector:
app: hello-web
ports:
- port: 80
targetPort: 80
nodePort: 30080
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment