Pages

Bài đăng phổ biến

Thursday, December 22, 2022

[spinnaker export pipeline template] TypeError: Cannot read property 'value' of undefined.

export pipeline template with error : 

TypeError: Cannot read property 'value' of undefined.

You can fixed it by run hal config as below : 

hal config features edit --pipeline-templates true
hal config features edit --managed-pipeline-templates-v2-ui true

then apply them by : 

hal deploy apply .

Done! 

Friday, November 18, 2022

Create shortlink with custom domain with firebase dynamic link by curl

curl  'https://firebasedynamiclinks.googleapis.com/v1/shortLinks?key=xxxx' --header 'Content-Type: application/json' --data '
{
"dynamicLinkInfo": {
"domainUriPrefix":"https://yourdomain",
"link":"https://yourlinkyouwant_to_redirectto",
     "analyticsInfo": {
      "googlePlayAnalytics": {
        "utmSource": "nhannguyen",
        "utmMedium": "test",
        "utmCampaign": "smartpos"
      }
    },
},
  "suffix": {
    "option": "SHORT"
  }
}'

Monday, November 7, 2022

Solved: [ kubernetes ] client intended to send too large body

To set client_max_body_size in ingress-nginx-controller you must add more this line to yaml file like that: 

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    nginx.ingress.kubernetes.io/proxy-body-size: "20m"
.......



Note: 

1. 20m ~ 20MB and no need restart nginx pod .
2. some template yaml have added this line to annotations : ingress.kubernetes.io/proxy-body-size: "<valuem>" but it is not enough you must add this line : nginx.ingress.kubernetes.io/proxy-body-size there is nginx in the first line .