Created
December 13, 2025 14:23
-
-
Save orange723/9894df772660d33a6ef9e2b0d03acc44 to your computer and use it in GitHub Desktop.
nginx
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
| kind: Deployment | |
| metadata: | |
| name: web | |
| namespace: default | |
| spec: | |
| replicas: 2 | |
| selector: | |
| matchLabels: | |
| app: nginx | |
| template: | |
| metadata: | |
| labels: | |
| app: nginx | |
| spec: | |
| containers: | |
| - name: nginx | |
| image: docker.1ms.run/nginx:stable | |
| imagePullPolicy: IfNotPresent | |
| ports: | |
| - containerPort: 80 | |
| name: web | |
| --- | |
| kind: Service | |
| metadata: | |
| name: nginx | |
| namespace: default | |
| labels: | |
| app: nginx | |
| spec: | |
| type: NodePort | |
| ports: | |
| - port: 80 | |
| nodePort: 31532 | |
| selector: | |
| app: nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment