Skip to content

Instantly share code, notes, and snippets.

@Bhavdip
Last active December 6, 2024 13:36
Show Gist options
  • Save Bhavdip/051c8190a2cc7f2985925025d443d6f6 to your computer and use it in GitHub Desktop.
Save Bhavdip/051c8190a2cc7f2985925025d443d6f6 to your computer and use it in GitHub Desktop.
Service-1
#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