Created
January 29, 2020 09:49
-
-
Save tar-xzvff/89f83a67ccd47ec301e5be063ca3b70e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
creationTimestamp: null | |
name: n8n | |
--- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: n8n-pvc | |
namespace: n8n | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
volumeMode: Filesystem | |
resources: | |
requests: | |
storage: 2Gi | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: n8n-deployment | |
namespace: n8n | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: n8n | |
template: | |
metadata: | |
labels: | |
app: n8n | |
spec: | |
volumes: | |
- name: data | |
persistentVolumeClaim: | |
claimName: n8n-pvc | |
containers: | |
- name: n8n | |
image: n8nio/n8n | |
ports: | |
- containerPort: 5678 | |
env: | |
- name: N8N_BASIC_AUTH_ACTIVE | |
value: "true" | |
- name: N8N_BASIC_AUTH_USER | |
value: "n8n" | |
- name: N8N_BASIC_AUTH_PASSWORD | |
value: "n8n" | |
- name: GENERIC_TIMEZONE | |
value: "Asia/Tokyo" | |
volumeMounts: | |
- name: data | |
mountPath: /root/ | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: n8n-deployment | |
namespace: n8n | |
spec: | |
type: NodePort | |
selector: | |
app: n8n | |
ports: | |
- protocol: TCP | |
port: 5678 | |
nodePort: 32567 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment