[Book] [OK!] 7.3 Kustomize Integration
Делаю:
2024.03.24
$ cat << 'EOF' | kubectl create -f -
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: bgdk-app
namespace: argocd
spec:
destination:
namespace: bgdk
server: https://kubernetes.default.svc
project: default
source:
path: ch07/bgdk/bgdk
repoURL: https://github.com/wildmakaka/gitops-cookbook-sc.git
targetRevision: main
syncPolicy:
automated: {}
EOF
$ kubectl patch svc bgd -n bgdk -p '{"spec": {"type": "NodePort"}}'
$ kubectl get services -n bgdk
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
bgd NodePort 10.105.199.181 <none> 8080:31257/TCP 3m11s
// [OK!]
http://192.168.49.2:31257
gitops-cookbook-sc/ch07/bgdk/bgdk/kustomization.yaml
Меняю цвет
$ argocd app sync bgdk-app
// [OK!] Цвет обновился!
http://192.168.49.2:31257
$ argocd app delete bgdh-app