Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratap2018 committed Dec 18, 2023
1 parent 69887c8 commit 9d590a8
Showing 1 changed file with 37 additions and 45 deletions.
82 changes: 37 additions & 45 deletions .deploy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,41 @@ spec:

ports:
- containerPort: __PORT__
---
apiVersion: v1
kind: Service
metadata:
name: entity-api-service
namespace: hypermine-development
annotations:
cloud.google.com/neg: '{"ingress": true}'

spec:
type: NodePort
selector:
app: entity-api
ports:
- port: __PORT__
targetPort: __PORT__
protocol: TCP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-entity
namespace: hypermine-development
spec:
replicas: 1

selector:
matchLabels:
app: nginx-entity
template:
metadata:
labels:
app: nginx-entity
spec:
containers:
- name: nginx-entity
image: __GOOGLE_ARTIFACT_URL__/__GOOGLE_PROJECT_ID__/__GOOGLE_ARTIFACT_REPO__/nginx-entity:latest
resources:
Expand All @@ -62,59 +97,16 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: entity-api-service
name: nginx-entity-service
namespace: hypermine-development
annotations:
cloud.google.com/neg: '{"ingress": true}'

spec:
type: NodePort
selector:
app: entity-api
app: nginx-entity
ports:
- port: 8080
targetPort: 8080
protocol: TCP
# ---
# apiVersion: apps/v1
# kind: Deployment
# metadata:
# name: nginx-entity
# namespace: hypermine-development
# spec:
# replicas: 1

# selector:
# matchLabels:
# app: nginx-entity
# template:
# metadata:
# labels:
# app: nginx-entity
# spec:
# containers:
# - name: nginx-entity
# image: __GOOGLE_ARTIFACT_URL__/__GOOGLE_PROJECT_ID__/__GOOGLE_ARTIFACT_REPO__/nginx-entity:latest
# resources:
# limits:
# memory: "256m"
# cpu: "500m"
# ports:
# - containerPort: 8080
# ---
# apiVersion: v1
# kind: Service
# metadata:
# name: nginx-entity-service
# namespace: hypermine-development
# annotations:
# cloud.google.com/neg: '{"ingress": true}'

# spec:
# type: NodePort
# selector:
# app: nginx-entity
# ports:
# - port: 8080
# targetPort: 8080
# protocol: TCP

0 comments on commit 9d590a8

Please sign in to comment.