init deployment test
This commit is contained in:
commit
1c05051948
27
py-kms/py-kms-deployment.yaml
Normal file
27
py-kms/py-kms-deployment.yaml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: py-kms
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
revisionHistoryLimit: 3
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: py-kms
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: py-kms
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: ghcr.io/thespad/py-kms
|
||||||
|
name: py-kms
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: "800m"
|
||||||
|
memory: "100mb"
|
||||||
|
requests:
|
||||||
|
cpu: "300m"
|
||||||
|
memory: "400mb"
|
||||||
|
ports:
|
||||||
|
- containerPort: 1688
|
10
py-kms/py-kms-svc.yaml
Normal file
10
py-kms/py-kms-svc.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: py-kms
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 1688
|
||||||
|
targetPort: 1688
|
||||||
|
selector:
|
||||||
|
app: py-kms
|
Loading…
Reference in New Issue
Block a user