Last active
December 6, 2024 13:36
-
-
Save Bhavdip/051c8190a2cc7f2985925025d443d6f6 to your computer and use it in GitHub Desktop.
Service-1
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
#since we are creating service configuration the API version would be v1 not core/v1 or app/v1 | |
#This is fix and you check the latest version on official kubernetes site | |
apiVersion: v1 | |
# Since we want to create a service there for kind would be Service | |
kind: Service | |
# Metadata for this service object | |
metadata: | |
name: service-backend # name of the serive | |
#Below will be the specification for this above service which tell k8S type of service we want to create on cluster. | |
spec: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment