-
Notifications
You must be signed in to change notification settings - Fork 3
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
7 changed files
with
99 additions
and
0 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 @@ | ||
secrets.yaml |
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,8 @@ | ||
#!/bin/sh | ||
|
||
NAMESACE=bellinghamcodes | ||
|
||
kubectl apply -f namespace.yaml | ||
kubectl --namespace=${NAMESACE} apply -f ./secrets.yaml | ||
kubectl --namespace=${NAMESACE} apply -f ./service.yaml | ||
kubectl --namespace=${NAMESACE} apply -f ./deployment.yaml |
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: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: website | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: website | ||
spec: | ||
containers: | ||
- image: tantalic/bellinghamcodes-website:latest | ||
name: api | ||
ports: | ||
- containerPort: 80 | ||
protocol: TCP | ||
env: | ||
- name: SLACK_TEAM | ||
valueFrom: | ||
secretKeyRef: | ||
name: slack | ||
key: team | ||
- name: SLACK_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
name: slack | ||
key: token | ||
- name: MAILCHIMP_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
name: mailchimp | ||
key: token | ||
- name: MAILCHIMP_LIST | ||
valueFrom: | ||
secretKeyRef: | ||
name: mailchimp | ||
key: list |
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,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: bellinghamcodes |
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 @@ | ||
# The following example shows the secrets that should be defined for a | ||
# kubernetes deployment | ||
|
||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: slack | ||
type: Opaque | ||
data: | ||
team: | ||
token: | ||
--- | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: mailchimp | ||
type: Opaque | ||
data: | ||
token: | ||
list: | ||
--- |
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: v1 | ||
kind: Service | ||
metadata: | ||
name: website | ||
labels: | ||
name: website | ||
router.deis.io/routable: "true" | ||
annotations: | ||
router.deis.io/domains: bellingham.codes,www.bellingham.codes | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
app: website | ||
|
||
ports: | ||
- name: http | ||
port: 80 | ||
protocol: TCP |