Skip to content

Instantly share code, notes, and snippets.

@oguzzarci
Created October 29, 2021 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oguzzarci/8dfd01a9194df67459159ee452f776b1 to your computer and use it in GitHub Desktop.
Save oguzzarci/8dfd01a9194df67459159ee452f776b1 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: ssltermination
namespace: work
spec:
replicas: 1
selector:
matchLabels:
app: ssltermination
template:
metadata:
labels:
app: ssltermination
spec:
containers:
- name: ssltermination
image: oguzzarci/awseksssltermination:0.1
ports:
- containerPort: 80
resources:
limits:
cpu: 50m
memory: 64Mi
requests:
cpu: 50m
memory: 64Mi
---
apiVersion: v1
kind: Service
metadata:
name: ssltermination
namespace: work
annotations:
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: CERT_ARN
spec:
type: LoadBalancer
selector:
app: ssltermination
ports:
- protocol: TCP
port: 443
targetPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment