Last active
August 29, 2015 14:18
-
-
Save kylelemons/d6416ae698437e4e2466 to your computer and use it in GitHub Desktop.
Frontend service description for Kubernetes
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
id: frontend | |
kind: Service | |
apiVersion: v1beta1 | |
selector: | |
app: frontend | |
labels: | |
app: frontend | |
containerPort: 80 | |
port: 80 | |
publicIPs: | |
- 330.201.152.515 |
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
$ gcloud compute target-pools list | |
NAME REGION SESSION_AFFINITY BACKUP HEALTH_CHECKS | |
vms-nodes us-central1 | |
$ gcloud compute target-pools describe vms-nodes | |
creationTimestamp: '2015-04-03T18:01:07.849-07:00' | |
description: VM nodes | |
id: '1575041860' | |
instances: | |
- https://www.googleapis.com/compute/v1/projects/projectid/zones/us-central1-a/instances/k8s-vms-node-1 | |
kind: compute#targetPool | |
name: vms-nodes | |
region: https://www.googleapis.com/compute/v1/projects/projectid/regions/us-central1 | |
selfLink: https://www.googleapis.com/compute/v1/projects/projectid/regions/us-central1/targetPools/vms-nodes | |
$ gcloud compute forwarding-rules list | |
NAME REGION IP_ADDRESS IP_PROTOCOL TARGET | |
vms-forward-http us-central1 330.201.152.515 TCP us-central1/targetPools/vms-nodes | |
vms-forward-https us-central1 330.201.152.515 TCP us-central1/targetPools/vms-nodes | |
vms-manage-ssh us-central1 330.201.152.515 TCP us-central1/targetPools/vms-nodes | |
$ gcloud compute forwarding-rules describe vms-forward-http | |
IPAddress: 330.201.152.515 | |
IPProtocol: TCP | |
creationTimestamp: '2015-04-03T18:03:39.903-07:00' | |
description: Forwarding rule for all external services provided by the vms cluster | |
id: '7291047553' | |
kind: compute#forwardingRule | |
name: vms-forward-http | |
portRange: 80-80 | |
region: https://www.googleapis.com/compute/v1/projects/projectid/regions/us-central1 | |
selfLink: https://www.googleapis.com/compute/v1/projects/projectid/regions/us-central1/forwardingRules/vms-forward-http | |
target: https://www.googleapis.com/compute/v1/projects/projectid/regions/us-central1/targetPools/vms-nodes | |
$ gcloud compute firewall-rules list | |
NAME NETWORK SRC_RANGES RULES SRC_TAGS TARGET_TAGS | |
allow-k8s-http default 0.0.0.0/0 tcp:80,tcp:443 k8s-vms-node | |
$ gcloud compute firewall-rules describe allow-k8s-http | |
allowed: | |
- IPProtocol: tcp | |
ports: | |
- '80' | |
- IPProtocol: tcp | |
ports: | |
- '443' | |
creationTimestamp: '2015-03-31T22:39:06.586-07:00' | |
description: Allow HTTP/S to kubernetes | |
id: '113003373' | |
kind: compute#firewall | |
name: allow-k8s-http | |
network: https://www.googleapis.com/compute/v1/projects/projectid/global/networks/default | |
selfLink: https://www.googleapis.com/compute/v1/projects/projectid/global/firewalls/allow-k8s-http | |
sourceRanges: | |
- 0.0.0.0/0 | |
targetTags: | |
- k8s-vms-node |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment