Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
[Quota Manager] Fix k8s Deployment Issues (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-zhonghao authored Sep 24, 2020
1 parent 78d66d6 commit 740b604
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion kubernetes/services/api-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ data:
microservices.port.service.url=http://portmanager-service.default.svc.cluster.local:9006/
microservices.sg.service.url=http://sgmanager-service.default.svc.cluster.local:9008/
microservices.route.service.url=http://routemanager-service.default.svc.cluster.local:9003/
microservices.quota.service.url = http://vpcmanager-service.default.svc.cluster.local:9001/
microservices.quota.service.url = http://quotamanager-service.default.svc.cluster.local:9012/
microservices.elasticip.service.url=http://eipmanager-service.default.svc.cluster.local:9011/
keystone.enable=true
Expand Down
28 changes: 13 additions & 15 deletions kubernetes/services/quota_manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,22 @@ metadata:
name: quota-configmap
data:
application.properties: |
ignite.host=ignite-alcor-service.default.svc.cluster.local
ignite.host=ignite-alcor-service.ignite-alcor.svc.cluster.local
ignite.port=10800
ignite.thin.client.enable=true
logging.level.root=info
logging.level.org.springframework.web=info
logging.file.path=.
logging.type=file
quota.defaults.floating_ip=50
quota.defaults.network=10
quota.defaults.port=50
quota.defaults.floating_ip=-1
quota.defaults.network=-1
quota.defaults.port=-1
quota.defaults.rbac_policy=-1
quota.defaults.router=10
quota.defaults.security_group=10
quota.defaults.security_group_rule=100
quota.defaults.subnet=10
quota.defaults.router=-1
quota.defaults.security_group=-1
quota.defaults.security_group_rule=-1
quota.defaults.subnet=-1
quota.defaults.subnetpool=-1
management.health.redis.enabled=false
---
apiVersion: apps/v1
kind: Deployment
Expand All @@ -32,7 +31,7 @@ spec:
selector:
matchLabels:
app: quotamanager
replicas: 3
replicas: 5
template:
metadata:
labels:
Expand All @@ -46,16 +45,16 @@ spec:
- key: application.properties
path: application.properties
containers:
- image: zhonghaolyu/repo:vpcKube1
#- image: fwnetworking/controller:vpc_manager-v0.3.0
- image: quota_manager:v1.0
#- image: fwnetworking/controller:vpc_manager-v0.3.0
name: quotamanager-web
imagePullPolicy: IfNotPresent
command: ["java", "-jar", "/app/AlcorQuotaManager-0.1.0.jar", "--spring.config.location=/etc/app/application.properties"]
command: ["java", "-jar", "/app/AlcorQuotaManager-0.1.0.jar", "--spring.config.location=/opt/jboss/application.properties"]
ports:
- containerPort: 8080
volumeMounts:
- name: quota-volume
mountPath: /etc/app
mountPath: /opt/jboss
envFrom:
- configMapRef:
name: quota-configmap
Expand All @@ -74,4 +73,3 @@ spec:
nodePort: 30012
selector:
app: quotamanager

4 changes: 2 additions & 2 deletions services/quota_manager/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Dockerfile for VPC Manager
# Dockerfile for Quota Manager

FROM jboss/base-jdk:11

Expand All @@ -11,7 +11,7 @@ MAINTAINER Zhonghao Lyu <[email protected]>
#ENV SWAGGER_JSON "/app/swagger.json"
#ENV PORT 801

EXPOSE 8080
EXPOSE 9012

# Generate container image and run container
#COPY ./target/swagger/swagger.json /app/swagger.json
Expand Down

0 comments on commit 740b604

Please sign in to comment.