- Modify the variables in
hit.go.hitCountmeans how many times we want to hit to the serverless function.hitUrlis the url of the serverless function.apiKeyis the Bearer Token we set.hitCount := 300 hitUrl := "http://localhost:3000/api" apiKey := "" - Execute the following command.
go run hit.go
- Add secret, replace "YOUR_KEY" with the correct key
kubectl create secret generic synchronizer-job-secret --from-literal="API_SECRET_KEY=YOUR_KEY"