Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratap2018 committed Aug 1, 2024
1 parent d24aae2 commit 4eef5cf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .deploy/cert2.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: entity-ssl
name: entity-ssl-test
namespace: hypermine-development
spec:
dnsNames:
Expand Down
6 changes: 3 additions & 3 deletions .deploy/deployment2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
memory: "1Gi"
cpu: "500m"
ports:
- containerPort: __PORT__
- containerPort: 3001
env:
- name: PORT
value: "__PORT__"
Expand Down Expand Up @@ -84,8 +84,8 @@ spec:
selector:
app: entity-api-test
ports:
- port: __PORT__
targetPort: __PORT__
- port: 3001
targetPort: 3001
protocol: TCP
# ---
# apiVersion: apps/v1
Expand Down
58 changes: 4 additions & 54 deletions .deploy/ingress2.yaml
Original file line number Diff line number Diff line change
@@ -1,75 +1,25 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: entity-ingress
name: entity-ingress-test
namespace: hypermine-development
annotations:
kubernetes.io/ingress.allow-http: "false"
kubernetes.io/ingress.allow-http: "true"
kubernetes.io/force-ssl-redirect: redirect
ingressClassName: "gce"
kubernetes.io/ingress.global-static-ip-name: entity-ip
kubernetes.io/ingress.global-static-ip-name: entity-ip-test
cert-manager.io/issuer: letsencrypt-production
labels:
name: ingress

spec:
tls:
- secretName: entity-ssl
- secretName: entity-ssl-test
hosts:
- "api.entity.hypersign.id"
- "*.api.entity.hypersign.id"
- "api.entity-test.hypersign.id"
- "*.api.entity-test.hypersign.id"

rules:
- host: "api.entity.hypersign.id"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: entity-api-service
port:
number: 3001
- path: /ssi/
pathType: Prefix
backend:
service:
name: entity-api-service
port:
number: 3001
- path: /api/
pathType: Prefix
backend:
service:
name: entity-api-service
port:
number: 3001
- host: "*.api.entity.hypersign.id"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: entity-api-service
port:
number: 3001
- path: /ssi/
pathType: Prefix
backend:
service:
name: entity-api-service
port:
number: 3001
- path: /api/
pathType: Prefix
backend:
service:
name: entity-api-service
port:
number: 3001
- host: "api.entity-test.hypersign.id"
http:
paths:
Expand Down

0 comments on commit 4eef5cf

Please sign in to comment.