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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# JHTTP
# JHTTP


JHTTP is a simple HTTP server written in the Java 8.
Expand Down Expand Up @@ -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
16 changes: 16 additions & 0 deletions k8s_manifest/autostoppingrule.yaml
Original file line number Diff line number Diff line change
@@ -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
50 changes: 50 additions & 0 deletions k8s_manifest/jhttp_deployment.yaml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions k8s_manifest/service.yaml
Original file line number Diff line number Diff line change
@@ -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}}
30 changes: 30 additions & 0 deletions k8s_manifest/values.yaml
Original file line number Diff line number Diff line change
@@ -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