Last active
January 22, 2022 17:30
-
-
Save parisnakitakejser/cf504df0b02f529e73fc33b53014a13b to your computer and use it in GitHub Desktop.
Load balancer in Kubernetes as Service
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: Service | |
| metadata: | |
| name: sample-lb | |
| spec: | |
| selector: | |
| app: web | |
| ports: | |
| - protocol: TCP | |
| port: 80 | |
| targetPort: 80 | |
| type: LoadBalancer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment