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: aidevops
namespace: aidevops-dev
labels:
app: aidevops
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: aidevops
namespace: aidevops-dev
labels:
app: aidevops
costcenter: dvsaidevops
spec:
replicas: 3
selector:
matchLabels:
app: aidevops
template:
metadata:
labels:
app: aidevops
spec:
containers:
- name: aidevops
image: shan5a6/myapp: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: aidevops-dev
labels:
app: aidevops
costcenter: dvsaidevops
namespace: aidevops-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: aidevops
namespace: aidevops-dev
labels:
app: myapp
costcenter: dvsaidevops
spec:
type: ClusterIP
selector:
app: aidevops
ports:
- name: http
port: 80
targetPort: 8080
---