Created
June 6, 2025 16:44
-
-
Save chrishamant/98707549290e699c301b9d6ddc8bb57c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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