Skip to content

Instantly share code, notes, and snippets.

@nimboya
Created November 30, 2019 18:22
Show Gist options
  • Save nimboya/74d27de601e1cef976bf22cf3cfc1af5 to your computer and use it in GitHub Desktop.
Save nimboya/74d27de601e1cef976bf22cf3cfc1af5 to your computer and use it in GitHub Desktop.
Sample Kubernetes Manifest File
apiVersion: apps/v1
kind: Deployment
metadata:
name: myappms
labels:
app: myappms
spec:
replicas: 2
selector:
matchLabels:
app: myappms
template:
metadata:
labels:
app: myappms
spec:
containers:
- env:
- name: ConnectionString
valueFrom:
secretKeyRef:
name: interswitchmssecrets
key: scrConnectionString
name: myappms
image: myapp/myappms:staging
ports:
- containerPort: 80
imagePullSecrets:
- name: regcred
---
apiVersion: v1
kind: Service
metadata:
name: myapp-svc
spec:
selector:
app: myappms
ports:
- name: http
protocol: TCP
port: 80
targetPort: 80
- name: https
protocol: TCP
port: 443
targetPort: 80
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment