Last active
August 12, 2020 20:01
-
-
Save jb3/643e0f8db94846469295143249177dd6 to your computer and use it in GitHub Desktop.
Phabricator k8s deployment
This file contains 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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: modcast-phabricator | |
spec: | |
revisionHistoryLimit: 2 | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: modcast-phabricator | |
template: | |
metadata: | |
labels: | |
app: modcast-phabricator | |
spec: | |
containers: | |
- name: modcast-phabricator | |
image: phabricator/phabricator | |
imagePullPolicy: "IfNotPresent" | |
volumeMounts: | |
- mountPath: "/var/www" | |
name: phab-storage | |
- name: modcast-phabricator-daemon | |
image: phabricator/daemon | |
imagePullPolicy: "IfNotPresent" | |
volumeMounts: | |
- mountPath: "/var/www" | |
name: phab-storage | |
- name: modcast-phabricator-aphlict | |
image: phabricator/aphlict | |
imagePullPolicy: "IfNotPresent" | |
volumeMounts: | |
- mountPath: "/var/www" | |
name: phab-storage | |
volumes: | |
- name: phab-storage | |
persistentVolumeClaim: | |
claimName: phabricator-storage-claim | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: modcast-phabricator | |
spec: | |
selector: | |
app: modcast-phabricator | |
ports: | |
- protocol: TCP | |
port: 80 | |
name: http | |
targetPort: 80 | |
- protocol: TCP | |
port: 22280 | |
name: websocket | |
targetPort: 22280 | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: phabricator | |
annotations: | |
kubernetes.io/ingress.class: "nginx" | |
nginx.ingress.kubernetes.io/ssl-redirect: "false" | |
cert-manager.io/cluster-issuer: letsencrypt-prod | |
nginx.ingress.kubernetes.io/configuration-snippet: | | |
more_set_headers "content-security-policy: "; | |
spec: | |
tls: | |
- hosts: | |
- phabricator.example | |
secretName: phabricator-example-web-tls | |
rules: | |
- host: phabricator.example | |
http: | |
paths: | |
- backend: | |
serviceName: modcast-phabricator | |
servicePort: 80 | |
- backend: | |
serviceName: modcast-phabricator | |
servicePort: 22280 | |
path: /ws/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment