apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: openslice
  labels:
    org.etsi.osl.service: kroki
  name: kroki
spec:
  replicas: 1
  selector:
    matchLabels:
      org.etsi.osl.service: kroki
  template:
    metadata:
      labels:
        org.etsi.osl.service: kroki
    spec:
      containers:
        - image: yuzutech/kroki
          name: kroki
          env:
            - name: KROKI_BLOCKDIAG_HOST
              value: "blockdiag"
          ports:
            - containerPort: 8000
      restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
  namespace: openslice
  labels:
    org.etsi.osl.service: kroki
  name: kroki
spec:
  ports:
    - name: "8000"
      targetPort: 8000
      port: 8000
  selector:
    org.etsi.osl.service: kroki
