diff options
author | Bogumil Zebek <bogumil.zebek@nokia.com> | 2020-02-14 09:02:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-02-14 09:02:45 +0000 |
commit | d2d412b5cb27caf2cd58212cefe9fd129b41e7d7 (patch) | |
tree | d6c1baa31be1f480d94de0884b1a1fbe4c85c06e /certService | |
parent | c663e2f61287e612e351df2360306fb5a257a8bf (diff) | |
parent | 8a02533ccad307ef94e4429fbde4fd3d66f66c31 (diff) |
Merge "Add Helm Chart"
Diffstat (limited to 'certService')
-rw-r--r-- | certService/helm/aaf-cert-service/.helmignore | 22 | ||||
-rw-r--r-- | certService/helm/aaf-cert-service/Chart.yaml | 5 | ||||
-rw-r--r-- | certService/helm/aaf-cert-service/templates/deployment.yaml | 34 | ||||
-rw-r--r-- | certService/helm/aaf-cert-service/templates/service.yaml | 11 | ||||
-rw-r--r-- | certService/helm/aaf-cert-service/values.yaml | 24 |
5 files changed, 96 insertions, 0 deletions
diff --git a/certService/helm/aaf-cert-service/.helmignore b/certService/helm/aaf-cert-service/.helmignore new file mode 100644 index 00000000..50af0317 --- /dev/null +++ b/certService/helm/aaf-cert-service/.helmignore @@ -0,0 +1,22 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/certService/helm/aaf-cert-service/Chart.yaml b/certService/helm/aaf-cert-service/Chart.yaml new file mode 100644 index 00000000..37c7d148 --- /dev/null +++ b/certService/helm/aaf-cert-service/Chart.yaml @@ -0,0 +1,5 @@ +apiVersion: v1 +appVersion: "1.0" +description: A Helm chart for AAF Cert Service +name: aaf-cert-service +version: 0.1.0 diff --git a/certService/helm/aaf-cert-service/templates/deployment.yaml b/certService/helm/aaf-cert-service/templates/deployment.yaml new file mode 100644 index 00000000..0b64d730 --- /dev/null +++ b/certService/helm/aaf-cert-service/templates/deployment.yaml @@ -0,0 +1,34 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ .Chart.Name }}-deployment +spec: + selector: + matchLabels: + app: {{ .Values.appLabel }} + replicas: {{ .Values.replicaCount }} + template: + metadata: + labels: + app: {{ .Values.appLabel }} + spec: + containers: + - name: aaf-cert-service + image: {{ .Values.repository }}/{{ .Values.image }} + imagePullPolicy: {{ .Values.pullPolicy }} + ports: + - containerPort: {{ .Values.containerPort }} + livenessProbe: + httpGet: + port: {{ .Values.containerPort }} + path: {{ .Values.healthcheck.path }} + initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} + periodSeconds: {{ .Values.liveness.periodSeconds }} + readinessProbe: + httpGet: + port: {{ .Values.containerPort }} + path: {{ .Values.healthcheck.path }} + initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} + periodSeconds: {{ .Values.readiness.periodSeconds }} + resources: + {{ toYaml .Values.resources }} diff --git a/certService/helm/aaf-cert-service/templates/service.yaml b/certService/helm/aaf-cert-service/templates/service.yaml new file mode 100644 index 00000000..fba7e5fa --- /dev/null +++ b/certService/helm/aaf-cert-service/templates/service.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ .Chart.Name }}-service +spec: + type: {{ .Values.service.type }} + selector: + app: {{ .Values.appLabel }} + ports: + - protocol: TCP + port: {{ .Values.containerPort }}
\ No newline at end of file diff --git a/certService/helm/aaf-cert-service/values.yaml b/certService/helm/aaf-cert-service/values.yaml new file mode 100644 index 00000000..9ec51c85 --- /dev/null +++ b/certService/helm/aaf-cert-service/values.yaml @@ -0,0 +1,24 @@ +appLabel: aaf-cert-service +replicaCount: 1 +repository: nexus3.onap.org:10001 +image: onap/org.onap.aaf.certservice.aaf-certservice-api:1.0.0 +pullPolicy: Always +containerPort: 8080 +service: + type: ClusterIP +liveness: + initialDelaySeconds: 60 + periodSeconds: 10 +readiness: + initialDelaySeconds: 30 + periodSeconds: 10 +healthcheck: + path: /actuator/health + +resources: + limits: + cpu: 2 + memory: 2Gi + requests: + cpu: 1 + memory: 1Gi
\ No newline at end of file |