From 8cdc857281f8bd631359b29c0f47133049419973 Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Tue, 29 Jun 2021 13:57:37 -0700 Subject: [PATCH 01/24] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 17b9c63..88995af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM openjdk:8-jre-alpine3.9 LABEL maintainer="Shivakumar Ningappa " - +# # Copy the already build jar to the image COPY target/jhttp-1.0-SNAPSHOT.jar /bin/ From 41c92a6128ade89328036a903b2a8af952374e7b Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Wed, 30 Jun 2021 08:45:16 -0700 Subject: [PATCH 02/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4d3933f..1d99d36 100644 --- a/README.md +++ b/README.md @@ -29,4 +29,4 @@ It creates a self-contained, executable JAR in the `target` directory. * [Update a test](src/test/java/io/harness/jhttp/server/HeaderListTest.java) * [Update README](README.md) Test3 - +# delete this From 895c913536da662c79799aa104da06becf9f363e Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Wed, 30 Jun 2021 09:56:08 -0700 Subject: [PATCH 03/24] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 88995af..17b9c63 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM openjdk:8-jre-alpine3.9 LABEL maintainer="Shivakumar Ningappa " -# + # Copy the already build jar to the image COPY target/jhttp-1.0-SNAPSHOT.jar /bin/ From e68b4f021b37f8a62e34067909a50cf219b35f53 Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Tue, 20 Jul 2021 08:26:23 -0700 Subject: [PATCH 04/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d99d36..417f90b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From 7b75c2fab41ce2a9a6c3c2aafdf2c702e628ad72 Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Tue, 20 Jul 2021 12:05:43 -0700 Subject: [PATCH 05/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 417f90b..1d99d36 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From 7386cdb22cbd75066995823229b6cfdbb51dbda3 Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Tue, 20 Jul 2021 12:11:33 -0700 Subject: [PATCH 06/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d99d36..417f90b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From 2b09c84bfdd6493690bd7d228808ac8291f5c30d Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Tue, 20 Jul 2021 13:30:51 -0700 Subject: [PATCH 07/24] Update README.md Big change --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 417f90b..7e3d3ae 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From f71db8d7bdb57bf98287ce3b2c2cd53fd015131d Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Tue, 20 Jul 2021 14:03:59 -0700 Subject: [PATCH 08/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7e3d3ae..d6d548f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From 02d2d15dfe87ab5e362a1043c92d44a276878bf8 Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Wed, 21 Jul 2021 12:06:17 -0700 Subject: [PATCH 09/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d6d548f..d3826bc 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From 40428160214118e23fb7c4bd16dff881f8569361 Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Thu, 22 Jul 2021 12:40:21 -0700 Subject: [PATCH 10/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d3826bc..dd7dbdc 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From 13eba3849f3e7515084db64403a8977753b04330 Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Fri, 23 Jul 2021 10:32:15 -0700 Subject: [PATCH 11/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dd7dbdc..ee6ce81 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From 7b2463351d66fba2b9d213ad83c00102582a7737 Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Mon, 26 Jul 2021 08:52:06 -0700 Subject: [PATCH 12/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ee6ce81..1cbb5eb 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From 18f28197c2d4ee6f3b1a31b7ab060f6e0d13772b Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Mon, 26 Jul 2021 11:52:05 -0700 Subject: [PATCH 13/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1cbb5eb..7fa1da4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From 6863fe5684c2ba56358bb00f1de7958ed170b04f Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Mon, 26 Jul 2021 13:10:45 -0700 Subject: [PATCH 14/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7fa1da4..67665a0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From b2bbdbef61b6758621aa478fa426698c363c698b Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Mon, 2 Aug 2021 09:13:56 -0700 Subject: [PATCH 15/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 67665a0..42626ba 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From ad11bde66c2effc434a7ee12c3252843aa3eda44 Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Mon, 2 Aug 2021 10:38:57 -0700 Subject: [PATCH 16/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 42626ba..921b21e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From e2c4059517833f123fd37ee20c9c93cdcda3f4c3 Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Tue, 3 Aug 2021 11:19:23 -0700 Subject: [PATCH 17/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 921b21e..9788894 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From e018c8446278656ed2b1a81a0208dd427302a53c Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Mon, 9 Aug 2021 10:43:27 -0700 Subject: [PATCH 18/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9788894..1aa754d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From 581ac6e3618992c65b05b83d86e30ab86cc2cca6 Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Wed, 11 Aug 2021 11:07:47 -0700 Subject: [PATCH 19/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1aa754d..490750c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From e649cb864538a00acbae3da9617328e90ad06878 Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Thu, 12 Aug 2021 10:18:28 -0700 Subject: [PATCH 20/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 490750c..ce53910 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From 31fc61917a67f09645b3e85425b589352ce69176 Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Tue, 24 Aug 2021 06:40:02 -0700 Subject: [PATCH 21/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ce53910..9fe8c0a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From 66274c6f17c9b274633cbbabbb2db6a14b0fd09a Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Tue, 24 Aug 2021 14:11:43 -0700 Subject: [PATCH 22/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9fe8c0a..1f82a89 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From 3c9b19790e99c2d90ebbc96de6059cd05754e115 Mon Sep 17 00:00:00 2001 From: chrisjws-harness <83615348+chrisjws-harness@users.noreply.github.com> Date: Thu, 26 Aug 2021 12:37:29 -0700 Subject: [PATCH 23/24] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f82a89..9c44ea8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# JHTTP +# JHTTP JHTTP is a simple HTTP server written in the Java 8. From eba63fd7759d871a2b2b2290acf80d86eaf988e2 Mon Sep 17 00:00:00 2001 From: Chris Storz Date: Tue, 6 Sep 2022 14:05:13 -0700 Subject: [PATCH 24/24] manifests --- k8s_manifest/autostoppingrule.yaml | 16 ++++++++++ k8s_manifest/jhttp_deployment.yaml | 50 ++++++++++++++++++++++++++++++ k8s_manifest/service.yaml | 12 +++++++ k8s_manifest/values.yaml | 30 ++++++++++++++++++ 4 files changed, 108 insertions(+) create mode 100644 k8s_manifest/autostoppingrule.yaml create mode 100644 k8s_manifest/jhttp_deployment.yaml create mode 100644 k8s_manifest/service.yaml create mode 100644 k8s_manifest/values.yaml diff --git a/k8s_manifest/autostoppingrule.yaml b/k8s_manifest/autostoppingrule.yaml new file mode 100644 index 0000000..d7aad72 --- /dev/null +++ b/k8s_manifest/autostoppingrule.yaml @@ -0,0 +1,16 @@ +apiVersion: ccm.harness.io/v1 +kind: AutoStoppingRule +metadata: + name: danf-web-united + namespace: default + annotations: + harness.io/cloud-connector-id: Harness_GCP_Billing +spec: + service: + name: web + port: 80 + ingress: + name: nginx-ingress-no-rewrite + controllerName: nginx + idleTimeMins: 15 + hideProgressPage: false diff --git a/k8s_manifest/jhttp_deployment.yaml b/k8s_manifest/jhttp_deployment.yaml new file mode 100644 index 0000000..e40f842 --- /dev/null +++ b/k8s_manifest/jhttp_deployment.yaml @@ -0,0 +1,50 @@ +{{- if .Values.createNamespace}} +apiVersion: v1 +kind: Namespace +metadata: + name: {{.Values.namespace}} +{{- end}} +# --- +# apiVersion: v1 +# kind: Service +# metadata: +# name: my-jhttp-svc +# labels: +# app: jhttp +# spec: +# type: LoadBalancer +# ports: +# - port: 80 +# selector: +# app: jhttp +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + labels: + app: jhttp + name: jhttp + namespace: {{.Values.namespace}} +spec: + replicas: {{int .Values.replicas}} + selector: + matchLabels: + app: jhttp + template: + metadata: + labels: + app: jhttp + spec: + containers: + - image: {{.Values.image}} + imagePullPolicy: IfNotPresent + name: jhttp-state-hc2cp + ports: + - containerPort: 80 + resources: + limits: + memory: 1024Mi + cpu: 100m + requests: + memory: 1024Mi + cpu: 100m diff --git a/k8s_manifest/service.yaml b/k8s_manifest/service.yaml new file mode 100644 index 0000000..35cb7b9 --- /dev/null +++ b/k8s_manifest/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{.Values.name}}-svc +spec: + type: {{.Values.serviceType}} + ports: + - port: {{.Values.servicePort}} + targetPort: {{.Values.serviceTargetPort}} + protocol: TCP + selector: + app: {{.Values.name}} \ No newline at end of file diff --git a/k8s_manifest/values.yaml b/k8s_manifest/values.yaml new file mode 100644 index 0000000..7378840 --- /dev/null +++ b/k8s_manifest/values.yaml @@ -0,0 +1,30 @@ +name: <+service.name> +replicas: 2 + +image: <+artifact.image> +# dockercfg: <+artifact.imagePullSecret> + +createNamespace: true +namespace: <+infra.namespace> + +# Service Type allow you to specify what kind of service you want. +# Possible values for ServiceType are: +# ClusterIP | NodePort | LoadBalancer | ExternalName +serviceType: LoadBalancer + +# A Service can map an incoming port to any targetPort. +# targetPort is where application is listening on inside the container. +servicePort: 80 +serviceTargetPort: 80 + +# Specify all environment variables to be added to the container. +# The following two maps, config and secrets, are put into a ConfigMap +# and a Secret, respectively. +# Both are added to the container environment in podSpec as envFrom source. + + +# env: +# config: +# key1: value10 +# secrets: +# key2: value2