Skip to content

Commit

Permalink
Add deployment manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
bagel-dawg committed Jan 13, 2025
1 parent 825b8e6 commit 6adca01
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 0 deletions.
12 changes: 12 additions & 0 deletions deploy/aws/iam.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"Statement": [
{
"Action": [
"ses:SendRawEmail"
],
"Effect": "Allow",
"Resource": "*"
}
],
"Version": "2012-10-17"
}
23 changes: 23 additions & 0 deletions deploy/kubernetes/kustomize/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ses-smtpd-proxy
spec:
selector:
matchLabels:
app: ses-smtpd-proxy
template:
metadata:
labels:
app: ses-smtpd-proxy
spec:
terminationGracePeriodSeconds: 10
serviceAccountName: ses-smtpd-proxy
containers:
- name: ses-smtpd-proxy
image: quay.io/swimlane/ses-smtpd-proxy
imagePullPolicy: IfNotPresent
ports:
- containerPort: 2500
resources: {}
12 changes: 12 additions & 0 deletions deploy/kubernetes/kustomize/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

images:
- name: quay.io/swimlane/ses-smtpd-proxy
newTag: 0.2.0

resources:
- ./deployment.yaml
- ./service.yaml
- ./serviceaccount.yaml
13 changes: 13 additions & 0 deletions deploy/kubernetes/kustomize/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: v1
kind: Service
metadata:
name: ses-smtpd-proxy
spec:
selector:
app: ses-smtpd-proxy
type: ClusterIP
ports:
- protocol: TCP
port: 2500
targetPort: 2500
8 changes: 8 additions & 0 deletions deploy/kubernetes/kustomize/serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: ses-smtpd-proxy
annotations:
# Required if using EKS IRSA for authentication.
eks.amazonaws.com/role-arn: arn:aws:iam::123456789012:role/ses-smtpd-proxy

0 comments on commit 6adca01

Please sign in to comment.