Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ WORKDIR /opt/app
EXPOSE 8080
COPY . /opt/app/
RUN mvn clean package && cp ./target/*.jar /opt/app/app.jar
ENTRYPOINT ["java","-jar","app.jar"]
ENTRYPOINT ["java","-jar","app.jar"]
13 changes: 13 additions & 0 deletions k8s_configs/dev/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: dvsmcdaidemo
namespace: dvsmcdaidemo-dev
labels:
app: dvsmcdaidemo
costcenter: dvsaidevops
data:
APP_ENV: production
LOG_LEVEL: info
API_URL: https://api.example.com
---
24 changes: 24 additions & 0 deletions k8s_configs/dev/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: dvsmcdaidemo
namespace: dvsmcdaidemo-dev
labels:
app: dvsmcdaidemo
costcenter: dvsaidevops
spec:
replicas: 3
selector:
matchLabels:
app: dvsmcdaidemo
template:
metadata:
labels:
app: dvsmcdaidemo
spec:
containers:
- name: dvsmcdaidemo
image: shan5a6/dvsmcdaidemo:v1.0.0
ports:
- containerPort: 8080
---
9 changes: 9 additions & 0 deletions k8s_configs/dev/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Namespace
metadata:
name: dvsmcdaidemo-dev
labels:
app: dvsmcdaidemo
costcenter: dvsaidevops
namespace: dvsmcdaidemo-dev
---
17 changes: 17 additions & 0 deletions k8s_configs/dev/svc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: dvsmcdaidemo
namespace: dvsmcdaidemo-dev
labels:
app: myapp
costcenter: dvsaidevops
spec:
type: ClusterIP
selector:
app: dvsmcdaidemo
ports:
- name: http
port: 80
targetPort: 8080
---
13 changes: 13 additions & 0 deletions k8s_configs/preprod/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: dvsmcdaidemo
namespace: dvsmcdaidemo-preprod
labels:
app: dvsmcdaidemo
costcenter: dvsaidevops
data:
APP_ENV: production
LOG_LEVEL: info
API_URL: https://api.example.com
---
24 changes: 24 additions & 0 deletions k8s_configs/preprod/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: dvsmcdaidemo
namespace: dvsmcdaidemo-preprod
labels:
app: dvsmcdaidemo
costcenter: dvsaidevops
spec:
replicas: 3
selector:
matchLabels:
app: dvsmcdaidemo
template:
metadata:
labels:
app: dvsmcdaidemo
spec:
containers:
- name: dvsmcdaidemo
image: shan5a6/dvsmcdaidemo:v1.0.0
ports:
- containerPort: 8080
---
9 changes: 9 additions & 0 deletions k8s_configs/preprod/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Namespace
metadata:
name: dvsmcdaidemo-preprod
labels:
app: dvsmcdaidemo
costcenter: dvsaidevops
namespace: dvsmcdaidemo-preprod
---
17 changes: 17 additions & 0 deletions k8s_configs/preprod/svc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: dvsmcdaidemo
namespace: dvsmcdaidemo-preprod
labels:
app: myapp
costcenter: dvsaidevops
spec:
type: ClusterIP
selector:
app: dvsmcdaidemo
ports:
- name: http
port: 80
targetPort: 8080
---
13 changes: 13 additions & 0 deletions k8s_configs/prod/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: dvsmcdaidemo
namespace: dvsmcdaidemo-prod
labels:
app: dvsmcdaidemo
costcenter: dvsaidevops
data:
APP_ENV: production
LOG_LEVEL: info
API_URL: https://api.example.com
---
24 changes: 24 additions & 0 deletions k8s_configs/prod/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: dvsmcdaidemo
namespace: dvsmcdaidemo-prod
labels:
app: dvsmcdaidemo
costcenter: dvsaidevops
spec:
replicas: 3
selector:
matchLabels:
app: dvsmcdaidemo
template:
metadata:
labels:
app: dvsmcdaidemo
spec:
containers:
- name: dvsmcdaidemo
image: shan5a6/dvsmcdaidemo:v1.0.0
ports:
- containerPort: 8080
---
9 changes: 9 additions & 0 deletions k8s_configs/prod/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Namespace
metadata:
name: dvsmcdaidemo-prod
labels:
app: dvsmcdaidemo
costcenter: dvsaidevops
namespace: dvsmcdaidemo-prod
---
17 changes: 17 additions & 0 deletions k8s_configs/prod/svc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: dvsmcdaidemo
namespace: dvsmcdaidemo-prod
labels:
app: myapp
costcenter: dvsaidevops
spec:
type: ClusterIP
selector:
app: dvsmcdaidemo
ports:
- name: http
port: 80
targetPort: 8080
---
13 changes: 13 additions & 0 deletions k8s_configs/sit/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: dvsmcdaidemo
namespace: dvsmcdaidemo-sit
labels:
app: dvsmcdaidemo
costcenter: dvsaidevops
data:
APP_ENV: production
LOG_LEVEL: info
API_URL: https://api.example.com
---
24 changes: 24 additions & 0 deletions k8s_configs/sit/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: dvsmcdaidemo
namespace: dvsmcdaidemo-sit
labels:
app: dvsmcdaidemo
costcenter: dvsaidevops
spec:
replicas: 3
selector:
matchLabels:
app: dvsmcdaidemo
template:
metadata:
labels:
app: dvsmcdaidemo
spec:
containers:
- name: dvsmcdaidemo
image: shan5a6/dvsmcdaidemo:v1.0.0
ports:
- containerPort: 8080
---
9 changes: 9 additions & 0 deletions k8s_configs/sit/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Namespace
metadata:
name: dvsmcdaidemo-sit
labels:
app: dvsmcdaidemo
costcenter: dvsaidevops
namespace: dvsmcdaidemo-sit
---
17 changes: 17 additions & 0 deletions k8s_configs/sit/svc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: dvsmcdaidemo
namespace: dvsmcdaidemo-sit
labels:
app: myapp
costcenter: dvsaidevops
spec:
type: ClusterIP
selector:
app: dvsmcdaidemo
ports:
- name: http
port: 80
targetPort: 8080
---
13 changes: 13 additions & 0 deletions k8s_configs/uat/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: dvsmcdaidemo
namespace: dvsmcdaidemo-uat
labels:
app: dvsmcdaidemo
costcenter: dvsaidevops
data:
APP_ENV: production
LOG_LEVEL: info
API_URL: https://api.example.com
---
24 changes: 24 additions & 0 deletions k8s_configs/uat/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: dvsmcdaidemo
namespace: dvsmcdaidemo-uat
labels:
app: dvsmcdaidemo
costcenter: dvsaidevops
spec:
replicas: 3
selector:
matchLabels:
app: dvsmcdaidemo
template:
metadata:
labels:
app: dvsmcdaidemo
spec:
containers:
- name: dvsmcdaidemo
image: shan5a6/dvsmcdaidemo:v1.0.0
ports:
- containerPort: 8080
---
9 changes: 9 additions & 0 deletions k8s_configs/uat/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Namespace
metadata:
name: dvsmcdaidemo-uat
labels:
app: dvsmcdaidemo
costcenter: dvsaidevops
namespace: dvsmcdaidemo-uat
---
17 changes: 17 additions & 0 deletions k8s_configs/uat/svc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: dvsmcdaidemo
namespace: dvsmcdaidemo-uat
labels:
app: myapp
costcenter: dvsaidevops
spec:
type: ClusterIP
selector:
app: dvsmcdaidemo
ports:
- name: http
port: 80
targetPort: 8080
---