Skip to content

Instantly share code, notes, and snippets.

@arn-ob
Last active November 12, 2022 09:29
Show Gist options
  • Save arn-ob/b42028b0569e0ed7991012180c02769b to your computer and use it in GitHub Desktop.
Save arn-ob/b42028b0569e0ed7991012180c02769b to your computer and use it in GitHub Desktop.
App Service and Deployement
apiVersion: v1
kind: Service
metadata:
name: exp-app-service
spec:
selector:
app: exp-app
ports:
- protocol: "TCP"
port: 80
targetPort: 80
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: exp-app
spec:
selector:
matchLabels:
app: exp-app
replicas: 1
template:
metadata:
labels:
app: exp-app
spec:
containers:
- name: exp-app
image: nginx
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
resources:
limits:
memory: 1G
cpu: "1"
imagePullSecrets:
- name: regcred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment