From ae5a9560f7dddfa60b4e017fc1c0b00a4f589e86 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 11 Nov 2025 11:58:17 +0000 Subject: [PATCH 1/2] AI onboarding: automated commit of generated YAMLs --- Dockerfile | 2 +- k8s_configs/dev/configmap.yaml | 13 +++++++++++++ k8s_configs/dev/deploy.yaml | 24 ++++++++++++++++++++++++ k8s_configs/dev/namespace.yaml | 9 +++++++++ k8s_configs/dev/svc.yaml | 17 +++++++++++++++++ 5 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 k8s_configs/dev/configmap.yaml create mode 100644 k8s_configs/dev/deploy.yaml create mode 100644 k8s_configs/dev/namespace.yaml create mode 100644 k8s_configs/dev/svc.yaml diff --git a/Dockerfile b/Dockerfile index 76f9432..25a87a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/k8s_configs/dev/configmap.yaml b/k8s_configs/dev/configmap.yaml new file mode 100644 index 0000000..5d267c0 --- /dev/null +++ b/k8s_configs/dev/configmap.yaml @@ -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 +--- diff --git a/k8s_configs/dev/deploy.yaml b/k8s_configs/dev/deploy.yaml new file mode 100644 index 0000000..e0faf0d --- /dev/null +++ b/k8s_configs/dev/deploy.yaml @@ -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 +--- diff --git a/k8s_configs/dev/namespace.yaml b/k8s_configs/dev/namespace.yaml new file mode 100644 index 0000000..f2a0e5b --- /dev/null +++ b/k8s_configs/dev/namespace.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: aidevops-dev + labels: + app: aidevops + costcenter: dvsaidevops + namespace: aidevops-dev +--- diff --git a/k8s_configs/dev/svc.yaml b/k8s_configs/dev/svc.yaml new file mode 100644 index 0000000..ebfae48 --- /dev/null +++ b/k8s_configs/dev/svc.yaml @@ -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 +--- From 766716d362ab6438bc25430855c556d2b23414d3 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 11 Nov 2025 12:12:56 +0000 Subject: [PATCH 2/2] AI Onboarding changes - 2025-11-11 12:12:56