Created
August 17, 2021 09:26
-
-
Save bharathirajatut/4e42862e57ef9286a94f46503b5bb74d 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: | |
name: nodeapp-deployment | |
labels: | |
app: nodeapp | |
type: front-end | |
spec: | |
template: | |
metadata: | |
name: nodejsapp-pod | |
labels: | |
app: nodejsapp | |
type: front-end | |
spec: | |
containers: | |
- name: nodejsapp-erp | |
image: "bharathirajatut/erp:1.0" | |
replicas: 1 | |
selector: | |
matchLabels: | |
type: front-end | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: nodejs-service | |
spec: | |
selector: | |
app: nodejsapp | |
type: LoadBalancer | |
ports: | |
- protocol: TCP | |
targetPort: 3000 | |
port: 80 | |
nodePort: 30000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment