Skip to content

Commit

Permalink
Added ops
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirat committed Jun 20, 2024
1 parent e337d38 commit 6e27a3c
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ops/certificate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: cms-cert
namespace: default
spec:
secretName: cms-tls
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
commonName: app.100xdevs.com
dnsNames:
- app.100xdevs.com
33 changes: 33 additions & 0 deletions ops/deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: cms
labels:
app: cms
spec:
replicas: 3
selector:
matchLabels:
app: cms
template:
metadata:
labels:
app: cms
spec:
containers:
- name: cms
image: 100xdevs/cms:1
imagePullPolicy: Always
ports:
- containerPort: 3000
volumeMounts:
- name: secret
mountPath: /usr/src/app/.env
subPath: .env
volumes:
- name: secret
secret:
secretName: cms-secret
items:
- key: .env
path: .env
7 changes: 7 additions & 0 deletions ops/secret.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: cms-secret
type: Opaque
data:
.env:
12 changes: 12 additions & 0 deletions ops/service.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: cms
spec:
selector:
app: cms
ports:
- protocol: TCP
port: 80
targetPort: 3000
type: ClusterIP

0 comments on commit 6e27a3c

Please sign in to comment.