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