Created
April 17, 2022 11:42
-
-
Save Senhaji-Rhazi-Hamza/bb66a6517d0dc25f3078e64605a3eb55 to your computer and use it in GitHub Desktop.
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: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| labels: | |
| app: ms-master | |
| name: ms-master | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: ms-master | |
| strategy: {} | |
| template: | |
| metadata: | |
| labels: | |
| app: ms-master | |
| spec: | |
| containers: | |
| - args: | |
| - ms_service_master | |
| image: mskube | |
| name: master | |
| ports: | |
| - containerPort: 8000 | |
| imagePullPolicy: Never | |
| envFrom: | |
| - configMapRef: | |
| name: envs-config | |
| resources: {} | |
| status: {} | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| labels: | |
| app: ms-master | |
| name: svc-master | |
| spec: | |
| ports: | |
| - port: 8000 | |
| protocol: TCP | |
| targetPort: 8000 | |
| # If you set the `spec.type` field to `NodePort` and you want a specific port number, | |
| # you can specify a value in the `spec.ports[*].nodePort` field. | |
| nodePort: 30080 | |
| selector: | |
| app: ms-master | |
| type: NodePort | |
| status: | |
| loadBalancer: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment