Skip to content

Instantly share code, notes, and snippets.

@strigazi
Created March 17, 2020 20:38
Show Gist options
  • Save strigazi/e58f307421e67296983ac834172344dc to your computer and use it in GitHub Desktop.
Save strigazi/e58f307421e67296983ac834172344dc to your computer and use it in GitHub Desktop.
# To be used with
# https://raw.githubusercontent.com/dmwm/CMSKubernetes/3c153baebfa10f790569dd1347048e2db1cfca2a/kubernetes/cmsweb/storages/cephfs-storage-couchdb.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
namespace: couchdb
spec:
selector:
matchLabels:
app: nginx
replicas: 1
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.7.9
ports:
- containerPort: 80
volumeMounts:
- mountPath: /var/lib/www/html
name: mypvc
volumes:
- name: mypvc
persistentVolumeClaim:
claimName: cephfs-claim-couchdb
readOnly: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment