Skip to content

Commit

Permalink
chore(): updating secure webhook example
Browse files Browse the repository at this point in the history
  • Loading branch information
VaibhavPage committed Mar 6, 2019
1 parent fd88d87 commit a18506a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions examples/gateways/secure-webhook-gateway-configmap.yaml
@@ -0,0 +1,13 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: webhook-gateway-configmap
data:
foo: |-
port: "12000"
endpoint: "/foo"
method: "POST"
# serverCertPath refers to file where certificate is stored
serverCertPath: "/etc/secret-volume/cert"
# serverKeyPath refers to file where private key is stored
serverKeyPath: "/etc/secret-volume/key"
4 changes: 2 additions & 2 deletions examples/gateways/secure-webhook.yaml
Expand Up @@ -29,11 +29,11 @@ spec:
image: "argoproj/webhook-gateway"
imagePullPolicy: "Always"
command: ["/bin/webhook-gateway"]
# there will be `cert` and `private` files available at this path
# there will be `cert` and `key` files available at this path
volumeMounts:
- name: secret-volume
mountPath: /etc/secret-volume
# make sure to create the secret with two keys- cert and private
# make sure to create the secret with two keys- cert and key
volumes:
- name: secret-volume
secret:
Expand Down

0 comments on commit a18506a

Please sign in to comment.