-
Notifications
You must be signed in to change notification settings - Fork 807
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #227 from TomArcherMsft/UserStory95456
User Story 95456
- Loading branch information
Showing
6 changed files
with
91 additions
and
105 deletions.
There are no files selected for viewing
85 changes: 85 additions & 0 deletions
85
quickstart/201-k8s-cluster-with-tf-and-aks/azure-vote.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,85 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: azure-vote-back | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: azure-vote-back | ||
template: | ||
metadata: | ||
labels: | ||
app: azure-vote-back | ||
spec: | ||
nodeSelector: | ||
"kubernetes.io/os": linux | ||
containers: | ||
- name: azure-vote-back | ||
image: mcr.microsoft.com/oss/bitnami/redis:6.0.8 | ||
env: | ||
- name: ALLOW_EMPTY_PASSWORD | ||
value: "yes" | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 250m | ||
memory: 256Mi | ||
ports: | ||
- containerPort: 6379 | ||
name: redis | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: azure-vote-back | ||
spec: | ||
ports: | ||
- port: 6379 | ||
selector: | ||
app: azure-vote-back | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: azure-vote-front | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: azure-vote-front | ||
template: | ||
metadata: | ||
labels: | ||
app: azure-vote-front | ||
spec: | ||
nodeSelector: | ||
"kubernetes.io/os": linux | ||
containers: | ||
- name: azure-vote-front | ||
image: mcr.microsoft.com/azuredocs/azure-vote-front:v1 | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 128Mi | ||
limits: | ||
cpu: 250m | ||
memory: 256Mi | ||
ports: | ||
- containerPort: 80 | ||
env: | ||
- name: REDIS | ||
value: "azure-vote-back" | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: azure-vote-front | ||
spec: | ||
type: LoadBalancer | ||
ports: | ||
- port: 80 | ||
selector: | ||
app: azure-vote-front |
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 was deleted.
Oops, something went wrong.
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