-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from Cingulara/develop
Updated Documentation for 0.14
- Loading branch information
Showing
10 changed files
with
579 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
deployments/chart/openrmf/templates/report-db-connection-policy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
kind: NetworkPolicy | ||
apiVersion: networking.k8s.io/v1 | ||
metadata: | ||
namespace: {{.Values.namespace}} | ||
name: report-db-connection-policy | ||
spec: | ||
podSelector: | ||
matchLabels: | ||
app.kubernetes.io/component: report-mongodb | ||
ingress: | ||
- ports: | ||
- port: 27017 | ||
from: | ||
- podSelector: | ||
matchLabels: | ||
app.kubernetes.io/component: report-nats-message-client | ||
- podSelector: | ||
matchLabels: | ||
app.kubernetes.io/component: report-api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,200 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: openrmf-report | ||
namespace: {{.Values.namespace}} | ||
labels: | ||
app.kubernetes.io/name: openrmf | ||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
app.kubernetes.io/component: report-api | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/revision: "{{ .Release.Revision }}" | ||
app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||
app.kubernetes.io/managed-by: helm | ||
spec: | ||
selector: | ||
matchLabels: | ||
run: openrmf-report | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
run: openrmf-report | ||
spec: | ||
containers: | ||
- name: openrmf-report | ||
image: cingulara/openrmf-api-report:{{.Values.reportImage}} | ||
ports: | ||
- name: web-port | ||
containerPort: 8080 | ||
readinessProbe: | ||
tcpSocket: | ||
port: web-port | ||
initialDelaySeconds: 5 | ||
periodSeconds: 30 | ||
livenessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: web-port | ||
initialDelaySeconds: 3 | ||
periodSeconds: 30 | ||
env: | ||
- name: ASPNETCORE_ENVIRONMENT | ||
value: Development | ||
- name: ASPNETCORE_URLS | ||
value: http://*:8080 | ||
- name: REPORTMONGODBCONNECTION | ||
valueFrom: | ||
secretKeyRef: | ||
name: reportdbsecret | ||
key: appConnection | ||
- name: REPORTMONGODB | ||
valueFrom: | ||
secretKeyRef: | ||
name: reportdbsecret | ||
key: initDBName | ||
- name: NATSSERVERURL | ||
value: nats://natsserver:4222 | ||
- name: JWT-AUTHORITY | ||
value: {{.Values.identityProviderURL}}/realms/{{.Values.identityProviderRealm}} | ||
- name: JWT-CLIENT | ||
value: {{.Values.identityProviderClientId}} | ||
- name: JAEGER_AGENT_HOST | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: status.hostIP | ||
- name: JAEGER_AGENT_PORT | ||
value: "6831" | ||
- name: JAEGER_SERVICE_NAME | ||
value: openrmfapi-report | ||
- name: JAEGER_SAMPLER_TYPE | ||
value: {{.Values.jaegerSamplerType}} | ||
- name: JAEGER_SAMPLER_PARAM | ||
value: "{{.Values.jaegerSamplerParam}}" | ||
resources: | ||
limits: | ||
memory: "750Mi" | ||
cpu: "500m" | ||
requests: | ||
memory: "250Mi" | ||
cpu: "100m" | ||
{{/* Use this service definition and NGINX controller setup if minikube */}} | ||
{{ if and .Values.installType (eq .Values.installType "minikube") }} | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: openrmf-report | ||
namespace: {{.Values.namespace}} | ||
labels: | ||
app.kubernetes.io/name: openrmf | ||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
app.kubernetes.io/component: report-api | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/revision: "{{ .Release.Revision }}" | ||
app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||
app.kubernetes.io/managed-by: helm | ||
spec: | ||
ports: | ||
- name: http | ||
port: 8080 | ||
protocol: TCP | ||
targetPort: 8080 | ||
selector: | ||
run: openrmf-report | ||
sessionAffinity: None | ||
type: {{.Values.serviceType}} | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: openrmf-report-ingress | ||
namespace: {{.Values.namespace}} | ||
labels: | ||
app.kubernetes.io/name: openrmf | ||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
app.kubernetes.io/component: report-api-ingress | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/revision: "{{ .Release.Revision }}" | ||
app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||
app.kubernetes.io/managed-by: helm | ||
annotations: | ||
kubernetes.io/ingress.class: nginx | ||
nginx.ingress.kubernetes.io/rewrite-target: /$2 | ||
nginx.ingress.kubernetes.io/cors-allow-methods: "GET, POST, PUT, OPTIONS" | ||
spec: | ||
rules: | ||
- host: {{.Values.dnsName}} | ||
http: | ||
paths: | ||
- path: /report(/|$)(.*) | ||
backend: | ||
serviceName: openrmf-report | ||
servicePort: 8080 | ||
{{ end }} | ||
{{/* Use this service definition and Load Balancer type setup if AWS EKS */}} | ||
{{ if and .Values.installType (eq .Values.installType "awseks") }} | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: openrmf-report | ||
namespace: {{.Values.namespace}} | ||
labels: | ||
app.kubernetes.io/name: openrmf | ||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
app.kubernetes.io/component: report-api | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/revision: "{{ .Release.Revision }}" | ||
app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||
app.kubernetes.io/managed-by: helm | ||
annotations: | ||
# Note that the backend talks over HTTP. | ||
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http | ||
# The ARN of your certificate. | ||
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: {{.Values.awsACM}} | ||
# Only run SSL on the port named "https" below. | ||
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "https" | ||
spec: | ||
ports: | ||
- name: http | ||
port: 80 | ||
protocol: TCP | ||
targetPort: 8080 | ||
- name: https | ||
port: 443 | ||
protocol: TCP | ||
targetPort: 8080 | ||
selector: | ||
run: openrmf-report | ||
sessionAffinity: None | ||
type: {{.Values.serviceTypeAWS | default "LoadBalancer"}} | ||
{{ end }} | ||
{{ if .Values.useprometheusoperator }} | ||
--- | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: openrmf-report-api-metrics | ||
namespace: {{.Values.namespace}} | ||
labels: | ||
app.kubernetes.io/name: openrmf | ||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
app.kubernetes.io/component: report-api | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/revision: "{{ .Release.Revision }}" | ||
app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||
app.kubernetes.io/managed-by: helm | ||
{{ .Values.servicemonitormatchlabelname }}: {{ .Values.servicemonitormatchlabelvalue }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/component: report-api | ||
endpoints: | ||
- port: https | ||
interval: 15s | ||
path: /metrics | ||
namespaceSelector: | ||
matchNames: | ||
- {{.Values.namespace}} | ||
{{ end }} |
Oops, something went wrong.