91 lines
2.6 KiB
YAML
91 lines
2.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
annotations:
|
|
k8s.score.dev/workload-name: demo-vivek-11
|
|
labels:
|
|
app.kubernetes.io/instance: demo-vivek-11
|
|
app.kubernetes.io/managed-by: score-k8s
|
|
app.kubernetes.io/name: demo-vivek-11
|
|
name: demo-vivek-11
|
|
namespace: demo-vivek-11
|
|
spec:
|
|
revisionHistoryLimit: 3
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/instance: demo-vivek-11
|
|
strategy: {}
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
crucible.kyndryl.com/repo-url: https://gitea.kyndemo.live/validate/demo-vivek-11.git
|
|
crucible.kyndryl.com/team: demo
|
|
k8s.score.dev/workload-name: demo-vivek-11
|
|
labels:
|
|
app.kubernetes.io/instance: demo-vivek-11
|
|
app.kubernetes.io/managed-by: score-k8s
|
|
app.kubernetes.io/name: demo-vivek-11
|
|
spec:
|
|
automountServiceAccountToken: false
|
|
containers:
|
|
- env:
|
|
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
|
value: http://otel-collector.monitoring.svc.cluster.local:4318
|
|
- name: OTEL_EXPORTER_OTLP_PROTOCOL
|
|
value: http/protobuf
|
|
- name: OTEL_LOGS_EXPORTER
|
|
value: none
|
|
- name: OTEL_METRICS_EXPORTER
|
|
value: otlp
|
|
- name: OTEL_RESOURCE_ATTRIBUTES
|
|
value: service.name=demo-vivek-11
|
|
- name: OTEL_SERVICE_NAME
|
|
value: demo-vivek-11
|
|
- name: OTEL_TRACES_EXPORTER
|
|
value: otlp
|
|
image: cruciblecoredevacr.azurecr.io/demo-vivek-11:ff767dbfdce9fa159902bdcd915c62a4b60c0318
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /actuator/health
|
|
port: 8080
|
|
name: main
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /actuator/health
|
|
port: 8080
|
|
resources:
|
|
limits:
|
|
memory: 1Gi
|
|
requests:
|
|
cpu: 250m
|
|
memory: 512Mi
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop:
|
|
- ALL
|
|
privileged: false
|
|
readOnlyRootFilesystem: true
|
|
runAsNonRoot: true
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
startupProbe:
|
|
failureThreshold: 36
|
|
httpGet:
|
|
path: /actuator/health
|
|
port: 8080
|
|
periodSeconds: 5
|
|
volumeMounts:
|
|
- mountPath: /tmp
|
|
name: crucible-tmp
|
|
enableServiceLinks: false
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
volumes:
|
|
- emptyDir:
|
|
sizeLimit: 256Mi
|
|
name: crucible-tmp
|
|
status: {}
|