Skip to content

Instantly share code, notes, and snippets.

@parisnakitakejser
Created January 3, 2022 00:53
Show Gist options
  • Save parisnakitakejser/5e19dd192aeca0f36aa46206d7d4cef5 to your computer and use it in GitHub Desktop.
Save parisnakitakejser/5e19dd192aeca0f36aa46206d7d4cef5 to your computer and use it in GitHub Desktop.
Create a deployment into Kubernetes with TLS support if its have the needed services in the selector group ingress: TLSIngress
apiVersion: apps/v1
kind: Deployment
metadata:
name: k8s-tls
spec:
selector:
matchLabels:
ingress: TLSIngress
replicas: 3
template:
metadata:
labels:
ingress: TLSIngress
service: k8s-ssl-web1
spec:
containers:
- name: k8s-web1
image: nginx
ports:
- containerPort: 8080
protocol: TCP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment