Skip to content

Instantly share code, notes, and snippets.

@proelbtn
Created February 6, 2019 13:07
Show Gist options
  • Save proelbtn/b2dd70bdac92ce204ebcc9bb53d8425f to your computer and use it in GitHub Desktop.
Save proelbtn/b2dd70bdac92ce204ebcc9bb53d8425f to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: growi-ingress
annotations:
kubernetes.io/ingress.global-static-ip-name: growi
kubernetes.io/ingress.allow-http: "false"
spec:
tls:
- secretName: growi
rules:
- http:
paths:
- backend:
serviceName: growi-service
servicePort: 443
---
apiVersion: v1
kind: Service
metadata:
name: growi-service
labels:
app: growi-service
spec:
type: NodePort
ports:
- port: 443
targetPort: 3000
selector:
app: growi
---
apiVersion: v1
kind: Pod
metadata:
name: growi
labels:
app: growi
spec:
containers:
- name: app
image: weseek/growi:3.2
env:
- name: MONGO_URI
value: mongodb://localhost/growi
ports:
- containerPort: 3000
readinessProbe:
httpGet:
path: /_api/v3/healthcheck
port: 3000
initialDelaySeconds: 3
periodSeconds: 3
- name: db
image: library/mongo:4.0
volumeMounts:
- name: growi-db
mountPath: /data/db
volumes:
- name: growi-db
persistentVolumeClaim:
claimName: growi-db
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: growi-db
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment