diff --git a/k8s/riju-server.yaml b/k8s/riju-server.yaml index 150fa83..34c391d 100644 --- a/k8s/riju-server.yaml +++ b/k8s/riju-server.yaml @@ -27,6 +27,26 @@ spec: - name: server image: "localhost:30999/riju:app" resources: {} + readinessProbe: + httpGet: + path: / + port: 6119 + scheme: HTTP + failureThreshold: 1 + initialDelaySeconds: 2 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 2 + livenessProbe: + httpGet: + path: / + port: 6119 + scheme: HTTP + failureThreshold: 3 + initialDelaySeconds: 2 + periodSeconds: 10 + successThreshold: 1 + timeoutSeconds: 2 ports: - name: http containerPort: 6119 @@ -50,3 +70,20 @@ spec: - name: http port: 80 targetPort: 6119 + +--- +kind: IngressRoute +apiVersion: traefik.containo.us/v1alpha1 +metadata: + namespace: riju + name: riju-server +spec: + entryPoints: + - https + routes: + - kind: Rule + match: "PathPrefix(`/`)" + services: + - namespace: riju + name: riju-server + port: 80