Skip to content

Commit

Permalink
Add dev deployment manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
lebedenko-ubique committed Sep 19, 2024
1 parent 85f7a9b commit 3886910
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 0 deletions.
36 changes: 36 additions & 0 deletions manifests/dev/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: sprind-nex-gen-signing-service-dev
namespace: sprind-eudi
spec:
replicas: 1
selector:
matchLabels:
app: sprind-nex-gen-signing-service-dev
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
minReadySeconds: 60
template:
metadata:
labels:
app: sprind-nex-gen-signing-service-dev
spec:
nodeSelector:
kubernetes.io/os: linux
containers:
- name: sprind-nex-gen-signing-service-dev
image: 'ubique.azurecr.io/next-gen-signing-service-dev:PLACEHOLDER'
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8000
resources:
requests:
cpu: 50m
memory: 512Mi
limits:
memory: 512Mi
imagePullSecrets:
- name: ub-acr-secret
39 changes: 39 additions & 0 deletions manifests/dev/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: sprind-nex-gen-signing-service-dev-ingress-rule
namespace: ingress-basic
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-staging
nginx.ingress.kubernetes.io/proxy-buffer-size: 128k
spec:
tls:
- hosts:
- sprind-signing-service.ubique.ch
secretName: sprind-nex-gen-signing-service-secret
rules:
- host: sprind-signing-service.ubique.ch
http:
paths:
- backend:
service:
name: sprind-nex-gen-signing-service-dev
port:
number: 8000
path: /
pathType: Prefix
---
apiVersion: v1
kind: Service
metadata:
name: sprind-nex-gen-signing-service-dev
namespace: ingress-basic
spec:
type: ExternalName
externalName: sprind-nex-gen-signing-service-dev.sprind-eudi.svc.cluster.local
ports:
- port: 8000
targetPort: 8000
protocol: TCP
name: http8000
11 changes: 11 additions & 0 deletions manifests/dev/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: sprind-nex-gen-signing-service-dev
namespace: sprind-eudi
spec:
type: ClusterIP
ports:
- port: 8000
selector:
app: sprind-nex-gen-signing-service-dev

0 comments on commit 3886910

Please sign in to comment.