-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
270 additions
and
16 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: certmanager.k8s.io/v1alpha1 | ||
kind: ClusterIssuer | ||
metadata: | ||
name: letsencrypt | ||
namespace: ingress | ||
spec: | ||
acme: | ||
server: https://acme-v02.api.letsencrypt.org/directory | ||
email: [email protected] | ||
privateKeySecretRef: | ||
name: letsencrypt | ||
http01: {} |
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: certmanager.k8s.io/v1alpha2 | ||
kind: Certificate | ||
metadata: | ||
name: blazing-web | ||
namespace: default | ||
spec: | ||
secretName: blazingmicropizzas-tls-secret | ||
dnsNames: | ||
- blazingmicropizzas.westus2.cloudapp.azure.com | ||
acme: | ||
config: | ||
- http01: | ||
ingressClass: nginx | ||
domains: | ||
- blazingmicropizzas.westus2.cloudapp.azure.com | ||
issuerRef: | ||
name: letsencrypt-staging | ||
kind: ClusterIssuer |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: blazing-web-ingress | ||
namespace: micropizzas | ||
annotations: | ||
kubernetes.io/ingress.class: nginx | ||
certmanager.k8s.io/cluster-issuer: letsencrypt | ||
spec: | ||
tls: | ||
- hosts: | ||
- blazingpizzas.westus2.cloudapp.azure.com | ||
secretName: tls-secret | ||
rules: | ||
- host: blazingpizzas.westus2.cloudapp.azure.com | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: web | ||
servicePort: 80 | ||
path: / |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: cert-manager.io/v1alpha2 | ||
kind: ClusterIssuer | ||
metadata: | ||
name: letsencrypt | ||
spec: | ||
acme: | ||
# You must replace this email address with your own. | ||
# Let's Encrypt will use this to contact you about expiring | ||
# certificates, and issues related to your account. | ||
email: [email protected] | ||
server: https://acme-v02.api.letsencrypt.org/directory | ||
privateKeySecretRef: | ||
# Secret resource used to store the account's private key. | ||
name: letsencrypt-prod-issuer-account-key | ||
# Add a single challenge solver, HTTP01 using nginx | ||
solvers: | ||
- http01: | ||
ingress: | ||
class: nginx |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: menu | ||
spec: | ||
selector: | ||
app: blazingpizza | ||
tier: backend | ||
role: menu | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
targetPort: http | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: menu | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: blazingpizza | ||
tier: backend | ||
role: menu | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: blazingpizza | ||
tier: backend | ||
role: menu | ||
spec: | ||
containers: | ||
- name: menu | ||
image: "blazingreg.azurecr.io/blazingpizzamenu" | ||
ports: | ||
- name: http | ||
containerPort: 80 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: orders | ||
spec: | ||
selector: | ||
app: blazingpizza | ||
tier: backend | ||
role: orders | ||
ports: | ||
- protocol: TCP | ||
port: 5555 | ||
targetPort: http | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: orders | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: blazingpizza | ||
tier: backend | ||
role: orders | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: blazingpizza | ||
tier: backend | ||
role: orders | ||
spec: | ||
containers: | ||
- name: orders | ||
image: "blazingreg.azurecr.io/blazingpizzaorders" | ||
ports: | ||
- name: http | ||
containerPort: 5555 | ||
imagePullPolicy: Always | ||
volumeMounts: | ||
- name: config-volume | ||
mountPath: /config | ||
volumes: | ||
- name: config-volume | ||
secret: | ||
secretName: | ||
orders-secrets |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: orders-data | ||
spec: | ||
selector: | ||
app: blazingpizza | ||
tier: backend | ||
role: orders-data | ||
ports: | ||
- protocol: TCP | ||
port: 27017 | ||
targetPort: mongo | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: menu | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: blazingpizza | ||
tier: backend | ||
role: orders-data | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: blazingpizza | ||
tier: backend | ||
role: orders-data | ||
spec: | ||
containers: | ||
- name: orders-data | ||
image: "blazingreg.azurecr.io/mongo" | ||
ports: | ||
- name: http | ||
containerPort: 27017 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: web | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app: blazingpizza | ||
tier: frontent | ||
role: web | ||
ports: | ||
- protocol: TCP | ||
port: 80 | ||
targetPort: http | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: web | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: blazingpizza | ||
tier: frontent | ||
role: web | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: blazingpizza | ||
tier: frontent | ||
role: web | ||
spec: | ||
containers: | ||
- name: web | ||
image: "blazingreg.azurecr.io/blazingpizzaweb" | ||
ports: | ||
- name: http | ||
containerPort: 80 | ||
volumeMounts: | ||
- name: twitter-auth-secrets | ||
mountPath: /config | ||
readOnly: true | ||
volumes: | ||
- name: twitter-auth-secrets | ||
secret: | ||
secretName: | ||
blazing-twitter-secrets |