Skip to content

Instantly share code, notes, and snippets.

View Yamini-crypto's full-sized avatar

Yamini-crypto

View GitHub Profile
PS C:\gitlab> .\gitlab-runner-windows-amd4.exe register
Runtime platform arch=amd4 os=windows pid=2076 revision=1b659122 version=12.8.0
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
https://gitlab.com/
Please enter the gitlab-ci token for this runner:
xxxxxxxxxxxxxxxxxxxxxxx
Please enter the gitlab-ci description for this runner:
[EC2AMAZ-59OR3D8]: WIN-CI-SERVER
Please enter the gitlab-ci tags for this runner (comma separated):
WIN-CI-SERVER,WIN_CI_SERVER
stages:
– build
– deploy
build:
only:
– master
stage: “build“
tags:
– WIN-CI-SERVER
script:
stages:
– build
– deploy
build:
only:
– master
stage: “build“
tags:
– WIN-CI-SERVER
stages:
– build
– deploy
build:
only:
– master
stage: “build“
tags:
– WIN-CI-SERVER
PS C:\gitlab> .\gitlab-runner-windows-amd4.exe register
Runtime platform arch=amd4 os=windows pid=2076 revision=1b659122 version=12.8.0
Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
https://gitlab.com/
Please enter the gitlab-ci token for this runner:
xxxxxxxxxxxxxxxxxxxxxxx
Please enter the gitlab-ci description for this runner:
[EC2AMAZ-59OR3D8]: WIN-CI-SERVER
Please enter the gitlab-ci tags for this runner (comma separated):
WIN-CI-SERVER,WIN_CI_SERVER
aws secretsmanager put-secret-value \
--secret-id external-secret-demo \
--secret-string "{\"secret-demo\":\"hello from secret version 2\"}"
kubectl get svc nginx-service -o=jsonpath='{.status.loadBalancer.ingress[0].hostname}' -n secret-demo
apiVersion: v1
kind: Service
metadata:
name: nginx-service
spec:
selector:
app: nginx
ports:
- protocol: TCP
port: 80
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
annotations:
reloader.stakater.com/auto: "true"
spec:
replicas: 1
selector:
matchLabels:
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: aws-external-secret
namespace: secret-demo
spec:
refreshInterval: 5s
secretStoreRef:
name: aws-secrets-manager
kind: ClusterSecretStore