Skip to content

Commit

Permalink
Merge pull request #1 from evekhm/skaffold_v2fix
Browse files Browse the repository at this point in the history
Skaffold v2fix
  • Loading branch information
evekhm authored Nov 8, 2022
2 parents 89c1930 + c52f4d2 commit 956e3cc
Show file tree
Hide file tree
Showing 11 changed files with 108 additions and 11 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ export TF_BUCKET_LOCATION="us"
bash setup/setup_terraform.sh
```

Run Terraform apply
Run Terraform

```
cd terraform/environments/dev
terraform init
# enabling GCP services first.
terraform apply -target=module.project_services -target=module.service_accounts -auto-approve
Expand Down
12 changes: 11 additions & 1 deletion cloudrun/queue/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: skaffold/v2beta12
apiVersion: skaffold/v3
kind: Config
metadata:
name: queue
Expand All @@ -39,6 +39,8 @@ portForward:
port: 80
localPort: 8000
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/minikube
Expand All @@ -52,16 +54,22 @@ profiles:
- image: common
alias: BASE_IMG
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/custom
- name: prod_non_cloudbuild
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/prod
- name: prod
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/prod
Expand Down Expand Up @@ -93,6 +101,8 @@ profiles:
- '**/*.py'
- '**/*.json'
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/dev
8 changes: 7 additions & 1 deletion microservices/adp_ui/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: skaffold/v2beta26
apiVersion: skaffold/v3
kind: Config
metadata:
name: adp-ui
Expand All @@ -23,12 +23,16 @@ build:
docker:
dockerfile: Dockerfile
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/dev
profiles:
- name: prod
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/prod
Expand All @@ -49,6 +53,8 @@ profiles:
docker:
dockerfile: Dockerfile-dev
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/dev
12 changes: 11 additions & 1 deletion microservices/classification_service/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: skaffold/v2beta12
apiVersion: skaffold/v3
kind: Config
metadata:
name: classification-service
Expand All @@ -39,6 +39,8 @@ portForward:
port: 80
localPort: 8890
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/minikube
Expand All @@ -52,16 +54,22 @@ profiles:
- image: common
alias: BASE_IMG
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/custom
- name: prod_non_cloudbuild
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/prod
- name: prod
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/prod
Expand Down Expand Up @@ -93,6 +101,8 @@ profiles:
- '**/*.py'
- '**/*.json'
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/dev
12 changes: 11 additions & 1 deletion microservices/document_status_service/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: skaffold/v2beta12
apiVersion: skaffold/v3
kind: Config
metadata:
name: document-status-service
Expand All @@ -39,6 +39,8 @@ portForward:
port: 80
localPort: 8894
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/minikube
Expand All @@ -52,16 +54,22 @@ profiles:
- image: common
alias: BASE_IMG
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/custom
- name: prod_non_cloudbuild
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/prod
- name: prod
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/prod
Expand Down Expand Up @@ -93,6 +101,8 @@ profiles:
- '**/*.py'
- '**/*.json'
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/dev
12 changes: 11 additions & 1 deletion microservices/extraction_service/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: skaffold/v2beta12
apiVersion: skaffold/v3
kind: Config
metadata:
name: extraction-service
Expand All @@ -39,6 +39,8 @@ portForward:
port: 80
localPort: 8892
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/minikube
Expand All @@ -52,16 +54,22 @@ profiles:
- image: common
alias: BASE_IMG
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/custom
- name: prod_non_cloudbuild
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/prod
- name: prod
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/prod
Expand Down Expand Up @@ -93,6 +101,8 @@ profiles:
- '**/*.py'
- '**/*.json'
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/dev
12 changes: 11 additions & 1 deletion microservices/hitl_service/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: skaffold/v2beta12
apiVersion: skaffold/v3
kind: Config
metadata:
name: hitl-service
Expand All @@ -39,6 +39,8 @@ portForward:
port: 80
localPort: 8893
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/minikube
Expand All @@ -52,16 +54,22 @@ profiles:
- image: common
alias: BASE_IMG
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/custom
- name: prod_non_cloudbuild
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/prod
- name: prod
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/prod
Expand Down Expand Up @@ -93,6 +101,8 @@ profiles:
- '**/*.py'
- '**/*.json'
deploy:
kubectl: { }
manifests:
kustomize:
paths:
- ./kustomize/dev
12 changes: 11 additions & 1 deletion microservices/matching_service/skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: skaffold/v2beta12
apiVersion: skaffold/v3
kind: Config
metadata:
name: matching-service
Expand All @@ -39,6 +39,8 @@ portForward:
port: 80
localPort: 8895
deploy:
kubectl: {}
manifests:
kustomize:
paths:
- ./kustomize/minikube
Expand All @@ -52,16 +54,22 @@ profiles:
- image: common
alias: BASE_IMG
deploy:
kubectl: {}
manifests:
kustomize:
paths:
- ./kustomize/custom
- name: prod_non_cloudbuild
deploy:
kubectl: {}
manifests:
kustomize:
paths:
- ./kustomize/prod
- name: prod
deploy:
kubectl: {}
manifests:
kustomize:
paths:
- ./kustomize/prod
Expand Down Expand Up @@ -93,6 +101,8 @@ profiles:
- '**/*.py'
- '**/*.json'
deploy:
kubectl: {}
manifests:
kustomize:
paths:
- ./kustomize/dev
Loading

0 comments on commit 956e3cc

Please sign in to comment.