-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Custom DC] Various setup improvements #2349
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,10 +29,9 @@ kind: Ingress | |
metadata: | ||
name: {{ .Values.ingress.name }} | ||
namespace: {{ .Values.namespace.name }} | ||
{{- with .Values.ingress.annotations }} | ||
annotations: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is good, would be nice to have more static resources like this (so it's easier to know what it is) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Agreed, will follow this style from now on! |
||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
kubernetes.io/ingress.global-static-ip-name: dc-website-ip | ||
ingress.gcp.kubernetes.io/pre-shared-cert: dc-website-cert{{ .Values.resourceSuffix }} | ||
spec: | ||
rules: | ||
- http: | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,14 @@ | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# Region is like "us-central1", zone is like "us-central1-a" | ||
if [[ $LOCATION =~ ^[a-z]+-[a-z0-9]+$ ]]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: add a quick comment on what the regex is looking for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done. thanks! |
||
REGION=$LOCATION | ||
else | ||
ZONE=$LOCATION | ||
fi | ||
gcloud container clusters get-credentials $CLUSTER_NAME \ | ||
--region $REGION --project=$PROJECT_ID | ||
${REGION:+--region $REGION} ${ZONE:+--zone $ZONE} --project=$PROJECT_ID | ||
|
||
# Create namespace if it does not exist. | ||
kubectl create namespace website \ | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my own understanding, why are we lowering memory limits, both here and in line 204&206?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have two way of generating these yamls. Kustomize and helm (different tools). We deploy to autopush/staging/prod/stanford using kustomize, and custom DC uses helm.
Since the kustomize template uses 3G and 1G respectively, it means that it should be enough for custom DC as well. Since we're trying to save cost for custom DC users, we only have 1 machine for the entire GKE. I would like to conserve resources in case we need to deploy more things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense, the flask server won't use too much memory, only the svg mixer needs high memory.