Skip to content

Instantly share code, notes, and snippets.

@johnbedeir
Created April 15, 2024 17:06
Show Gist options
  • Save johnbedeir/ef442b9b8b17e96788687f51a79eaa61 to your computer and use it in GitHub Desktop.
Save johnbedeir/ef442b9b8b17e96788687f51a79eaa61 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: craftscene-nginx-deployment
namespace: craftscene-app
spec:
replicas: 1
selector:
matchLabels:
app: craftscene-nginx
template:
metadata:
labels:
app: craftscene-nginx
spec:
volumes:
- name: nginx-config-volume
configMap:
name: nginx-config
containers:
- name: nginx
image: mseel3ttar/craftscene-nginx:latest
ports:
- containerPort: 80
volumeMounts:
- name: nginx-config-volume
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment