mirror of
https://github.com/google/nomulus.git
synced 2025-05-28 11:10:57 +02:00
Move terraform and kubernetes folder to be under proxy (#127)
* Move terraform and kubernetes folder to be under proxy There is no reason for them to be under proxy/src/... any more now that we have a Gradle-idiomatic folder structure.
This commit is contained in:
parent
9cd7c9402f
commit
520145f641
30 changed files with 8 additions and 17 deletions
|
@ -103,13 +103,13 @@ $ gcloud auth application-default login
|
|||
Login with the account that has "Project Owner" role of all three projects
|
||||
mentioned above.
|
||||
|
||||
Navigate to `java/google/registry/proxy/terraform`, create a folder called
|
||||
Navigate to `proxy/terraform`, create a folder called
|
||||
`envs`, and inside it, create a folder for the environment that proxy is
|
||||
deployed to ("alpha" for example). Copy `example_config.tf` to the environment
|
||||
folder.
|
||||
|
||||
```bash
|
||||
$ cd java/google/registry/proxy/terraform
|
||||
$ cd proxy/terraform
|
||||
$ mkdir -p envs/alpha
|
||||
$ cp example_config.tf envs/alpha/config.tf
|
||||
```
|
||||
|
@ -232,11 +232,11 @@ $ gcloud container clusters get-credentials --project <proxy-project> \
|
|||
|
||||
# Deploys environment specific kubernetes objects.
|
||||
$ kubectl create -f \
|
||||
java/google/registry/proxy/kubernetes/proxy-deployment-<env>.yaml
|
||||
proxy/kubernetes/proxy-deployment-<env>.yaml
|
||||
|
||||
# Deploys shared kubernetes objects.
|
||||
$ kubectl create -f \
|
||||
java/google/registry/proxy/kubernetes/proxy-service.yaml
|
||||
proxy/kubernetes/proxy-service.yaml
|
||||
```
|
||||
|
||||
Repeat this for all three clusters.
|
||||
|
@ -535,7 +535,7 @@ Use `kubectl` to create the deployment and autoscale objects:
|
|||
|
||||
```bash
|
||||
$ kubectl create -f \
|
||||
java/google/registry/proxy/kubernetes/proxy-deployment-alpha.yaml
|
||||
proxy/kubernetes/proxy-deployment-alpha.yaml
|
||||
```
|
||||
|
||||
The kubernetes
|
||||
|
@ -608,7 +608,7 @@ To deploy the NodePort service:
|
|||
|
||||
```bash
|
||||
$ kubectl create -f \
|
||||
java/google/registry/proxy/kubernetes/proxy-service.yaml
|
||||
proxy/kubernetes/proxy-service.yaml
|
||||
```
|
||||
|
||||
This service object will open up port 30000 (health check), 30001 (WHOIS) and
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue