Skip to content

Instantly share code, notes, and snippets.

@m0un10
Last active January 9, 2023 21:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save m0un10/b991c827c893492a6bfb8cd09f850f3f to your computer and use it in GitHub Desktop.
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: stripe-mock
spec:
selector:
matchLabels:
app: stripe-mock
replicas: 2 # tells deployment to run 2 pods matching the template
template:
metadata:
labels:
app: stripe-mock
spec:
containers:
- name: stripe-mock
image: stripe/stripe-mock:latest
ports:
- containerPort: 12111
---
apiVersion: v1
kind: Service
metadata:
name: stripe-mock
spec:
ports:
- port: 80
protocol: TCP
targetPort: 12111
selector:
app: stripe-mock
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: stripe-mock
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
external-dns.alpha.kubernetes.io/hostname: stripe-mock.example.com
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/backend-protocol: HTTP
nginx.ingress.kubernetes.io/force-ssl-redirect: "false"
spec:
rules:
- host: stripe-mock.example.com
http:
paths:
- backend:
service:
name: stripe-mock
port:
number: 80
path: /
pathType: Prefix
tls:
- hosts:
- stripe-mock.example.com
secretName: stripe-mock-tls-secret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment