forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
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 kubernetes#20928 from madhusudancs/replicaset-expose
Auto commit by PR queue bot
- Loading branch information
Showing
7 changed files
with
218 additions
and
21 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
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,42 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: ReplicaSet | ||
metadata: | ||
name: frontend | ||
# these labels can be applied automatically | ||
# from the labels in the pod template if not set | ||
# labels: | ||
# app: guestbook | ||
# tier: frontend | ||
spec: | ||
# this replicas value is default | ||
# modify it according to your case | ||
replicas: 3 | ||
# selector can be applied automatically | ||
# from the labels in the pod template if not set | ||
# selector: | ||
# matchLabels: | ||
# app: guestbook | ||
# tier: frontend | ||
template: | ||
metadata: | ||
labels: | ||
app: guestbook | ||
tier: frontend | ||
spec: | ||
containers: | ||
- name: php-redis | ||
image: gcr.io/google_samples/gb-frontend:v3 | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi | ||
env: | ||
- name: GET_HOSTS_FROM | ||
value: dns | ||
# If your cluster config does not include a dns service, then to | ||
# instead access environment variables to find service host | ||
# info, comment out the 'value: dns' line above, and uncomment the | ||
# line below. | ||
# value: env | ||
ports: | ||
- 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,44 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: ReplicaSet | ||
metadata: | ||
name: redis-slave | ||
# these labels can be applied automatically | ||
# from the labels in the pod template if not set | ||
# labels: | ||
# app: redis | ||
# role: slave | ||
# tier: backend | ||
spec: | ||
# this replicas value is default | ||
# modify it according to your case | ||
replicas: 2 | ||
# selector can be applied automatically | ||
# from the labels in the pod template if not set | ||
# selector: | ||
# app: guestbook | ||
# role: slave | ||
# tier: backend | ||
template: | ||
metadata: | ||
labels: | ||
app: redis | ||
role: slave | ||
tier: backend | ||
spec: | ||
containers: | ||
- name: slave | ||
image: gcr.io/google_samples/gb-redisslave:v1 | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi | ||
env: | ||
- name: GET_HOSTS_FROM | ||
value: dns | ||
# If your cluster config does not include a dns service, then to | ||
# instead access an environment variable to find the master | ||
# service's host, comment out the 'value: dns' line above, and | ||
# uncomment the line below. | ||
# value: env | ||
ports: | ||
- containerPort: 6379 |
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