jenkins - choisungwook/portfolio GitHub Wiki
์ด ์์ ๋ ingress subapth๋ฅผ ์ฌ์ฉํฉ๋๋ค.
controller:
image: "choisunguk/jenkins"
tag: "v5"
serviceType: ClusterIP
jenkinsUriPrefix: "/jenkins1"
installPlugins: []
ingress:
enabled: true
hostName: "choilab.com"
path: "/jenkins1"
controller:
image: "choisunguk/jenkins"
tag: "v5"
serviceType: ClusterIP
jenkinsUriPrefix: "/jenkins1"
installPlugins: []
ingress:
enabled: true
hostName: "choilab.com"
path: "/jenkins1"
persistence:
volumes:
- name: docker-sock
hostPath:
type: Socket
path: /var/run/docker.sock
mounts:
- mountPath: /var/run/docker.sock
name: docker-sock
์ด ์์ ๋ dns-01 solver์ ์ฌ์ฉํ๊ณ cloudflare๋ฅผ ์ฌ์ฉํฉ๋๋ค.
apiVersion: v1
kind: Secret
metadata:
name: cloudflare-api-token-secret
namespace: jenkins
type: Opaque
stringData:
api-token: <your-token>
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: jenkins-prodissuser
namespace: jenkins
spec:
acme:
# The ACME server URL
server: https://acme-v02.api.letsencrypt.org/directory
# Email address used for ACME registration
email: <your email>
# Name of a secret used to store the ACME account private key
privateKeySecretRef:
name: jenkins-prodissuser
# Enable the challenge provider
solvers:
- dns01:
cloudflare:
email: <your email>
apiTokenSecretRef:
name: cloudflare-api-token-secret #cloudflare api token
key: api-token
controller:
image: "choisunguk/jenkins"
tag: "v5"
serviceType: ClusterIP
installPlugins: []
ingress:
enabled: true
hostName: "jenkins.choilab.xyz"
tls:
- secretName: certmanager-jenkins
hosts:
- jenkins.choilab.xyz
annotations:
cert-manager.io/issuer: "jenkins-prodissuser"
์ด ์์ ๋ docker๋ผ๋ฒจ์ด ํ์ฑํ๋ ์์ปค๋ ธ๋์ nodeselector๋ฅผ ์ค์ ํ๋ ์์ ์ ๋๋ค.
kubectl label nodes <your-node-name> docker=activate
controller:
image: "choisunguk/jenkins"
tag: "v5"
serviceType: ClusterIP
installPlugins: []
nodeSelector:
docker: activate
agent:
nodeSelector:
docker: activate