pgbouncer版本1.7.2
psql(9.5.6)
我尝试在PgBouncer中使用auth_hba_file(/var/lib/pgsql/9.5/data/pg_hba.conf).
配置pgbouncer.ini
postgres = host=localhost port=5432 dbname=postgres user=postgres
test = host=localhost port=5432 dbname=test user=test
[pgbouncer]
logfile = /var/log/pgbouncer/pgbouncer.log
pidfile = /var/run/pgbouncer/pgbouncer.pid
listen_addr = *
listen_port = 6432
auth_type = hba
auth_hba_file = /var/lib/pgsql/9.5/data/pg_hba.conf
admin_users = postgres
stats_users = stats, postgres
pool_mode = session
server_reset_query = DISCARD ALL
max_client_conn = 100
default_pool_size = 20
Run Code Online (Sandbox Code Playgroud)
cat pg_hba.conf | grep -v"#"| grep -v"^ $"
local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
host test test …Run Code Online (Sandbox Code Playgroud) NodePort这种访问仪表板的方式仅建议用于单节点设置中的开发环境.
编辑kubernetes-dashboard服务.
$ kubectl -n kube-system edit service kubernetes-dashboard你应该看到服务的yaml表示.更改类型:ClusterIP键入:NodePort并保存文件.
可以在没有编辑器的情况下将clusterip更改为nodeport命令行吗 谢谢!
我使用workflow_dispatch 创建简单的github 操作。
name: Run Workflow Dispatch
on:
workflow_dispatch:
inputs:
version:
description: 'version'
required: true
default: 'latest'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- run: |
echo "version: ${{ github.event.inputs.version }}"
Run Code Online (Sandbox Code Playgroud)
我通过curl 创建请求。
curl -X POST \
-H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token xxxxxxxxx" \
https://api.github.com/repos/patsevanton/workflow-dispatch-client-payload/actions/workflows/workflow_dispatch.yml/dispatches \
--data '{"event_type": "my-dispatch", "client_payload": {"ref": "main"}}'
Run Code Online (Sandbox Code Playgroud)
但我收到错误:
{
"message": "Invalid request.\n\n\"client_payload\", \"event_type\" are not permitted keys.\n\"ref\" wasn't supplied.",
"documentation_url": "https://docs.github.com/rest/reference/actions#create-a-workflow-dispatch-event"
}
Run Code Online (Sandbox Code Playgroud)
如何在github操作中创建正确的workflow_dispatch?如何在github操作中创建对workflow_dispatch的正确请求?