@fairmint/canton-node-sdk
Version:
Canton Node SDK
74 lines (72 loc) • 1.9 kB
YAML
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
apiVersion: apps/v1
kind: Deployment
metadata:
name: docs
namespace: {{ .Release.Namespace }}
labels:
{{- include "splice-util-lib.default-labels" (set . "app" "docs") | nindent 4 }}
spec:
replicas: 1
selector:
matchLabels:
app: docs
strategy:
type: "Recreate"
template:
metadata:
labels:
{{- include "splice-util-lib.default-labels" (set . "app" "docs") | nindent 8 }}
spec:
{{- include "splice-util-lib.service-account" .Values | nindent 6 }}
containers:
- name: docs
image: "{{ .Values.imageRepo }}/docs:{{ .Chart.AppVersion }}{{ ((.Values.imageDigests).docs) }}"
{{- with .Values.imagePullPolicy }}
imagePullPolicy: {{ . }}
{{- end }}
ports:
- name: http
containerPort: 8080
protocol: TCP
- name: https
containerPort: 443
protocol: TCP
resources:
limits:
cpu: 1
memory: "1536Mi"
env:
- name: SPLICE_CLUSTER
value: "{{ .Values.networkName }}"
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
apiVersion: v1
kind: Service
metadata:
name: docs
namespace: {{ .Release.Namespace }}
spec:
selector:
app: docs
ports:
- name: http
port: {{ .Values.service.http.port }}
targetPort: http
protocol: TCP
- name: https
port: 443
protocol: TCP