backstage-demo-janus-showcase/manifests/base/deployment.yaml
Med Mouine 089a1cd890 config
2024-04-18 10:23:04 -04:00

73 lines
1.9 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: backstage
namespace: "janus-idp"
labels:
app.kubernetes.io/component: backstage
backstage.io/kubernetes-id: janus-idp
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/component: backstage
template:
metadata:
labels:
app.kubernetes.io/component: backstage
backstage.io/kubernetes-id: janus-idp
annotations:
checksum/app-config: 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
spec:
serviceAccountName: default
containers:
- resources:
limits:
cpu: 500m
requests:
cpu: 400m
name: backstage-showcase
image: backstage-showcase
imagePullPolicy: "Always"
command:
- node
- packages/backend
args:
- --config
- app-config.yaml
- --config
- app-config.production.yaml
envFrom:
- secretRef:
name: janus-idp
- secretRef:
name: janus-idp-pguser-janus-idp
- configMapRef:
name: backstage-showcase-bucket-claim
- secretRef:
name: backstage-showcase-bucket-claim
volumeMounts:
- name: ca-cert
mountPath: "/mnt/certs"
ports:
- name: backend
containerPort: 7007
protocol: TCP
readinessProbe:
httpGet:
path: /healthz
port: 7007
scheme: HTTP
initialDelaySeconds: 3
timeoutSeconds: 1
periodSeconds: 30
successThreshold: 1
failureThreshold: 3
volumes:
- name: ca-cert
secret:
secretName: janus-idp-cluster-cert
items:
- key: ca.crt
path: ca.crt