Skip to content

Instantly share code, notes, and snippets.

@nandakrr
Created March 1, 2023 05:44
Show Gist options
  • Select an option

  • Save nandakrr/c9675a58aff74a4a3acc992549b7efb5 to your computer and use it in GitHub Desktop.

Select an option

Save nandakrr/c9675a58aff74a4a3acc992549b7efb5 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: tinyfilemanager
labels:
app: tinyfilemanager
spec:
selector:
matchLabels:
app: tinyfilemanager
template:
metadata:
labels:
app: tinyfilemanager
spec:
containers:
- name: tinyfilemanager
image: tinyfilemanager/tinyfilemanager
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
labels:
app: tinyfilemanager-svc
name: tinyfilemanager-svc
spec:
ports:
- name: "80"
port: 80
targetPort: 80
selector:
app: tinyfilemanager
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment