Created
December 3, 2022 18:57
-
-
Save erangaeb/467b872ea7fca1ef39267d935508e31e to your computer and use it in GitHub Desktop.
nginx deployment
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: nginx2 | |
labels: | |
app: nginx2 | |
app.kubernetes.io/component: blackbox | |
spec: | |
containers: | |
- name: nginx2 | |
image: nginx | |
ports: | |
- containerPort: 80 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: nginx2 | |
labels: | |
name: nginx2 | |
app.kubernetes.io/component: blackbox | |
spec: | |
ports: | |
- port: 80 | |
selector: | |
app: nginx2 | |
type: LoadBalancer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment