0

Kubernetesと を使用して github リポジトリからアプリを起動していArgoCDます。

$ argocd app create guestbook --repo https://github.com/kubernetes/examples.git --path guestbook/all-in-one --dest-server https://kubernetes.default.svc --dest-namespace argocd

$ kubectl get pods
NAME                                  READY   STATUS             RESTARTS   AGE
argocd-application-controller-0       1/1     Running            0          115m
argocd-dex-server-5dd657bd9-65lg7     1/1     Running            2          115m
argocd-operator-df9b47968-8xshg       1/1     Running            0          48m
argocd-redis-759b6bc7f4-4749g         1/1     Running            0          115m
argocd-repo-server-6c495f858f-qp9l5   1/1     Running            0          115m
argocd-server-859b4b5578-s8n29        1/1     Running            0          115m
frontend-769c6c6476-cqt9g             0/1     CrashLoopBackOff   6          9m28s
frontend-8b5bb6c5d-786kh              0/1     CrashLoopBackOff   8          16m
frontend-8b5bb6c5d-j66v6              0/1     CrashLoopBackOff   8          16m
frontend-8b5bb6c5d-lpbhw              0/1     CrashLoopBackOff   8          16m

ポッドにログインすると、次のようになります。

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.128.2.22. Set the 'ServerName' directive globally to suppress this message
(13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs

この問題は、次のfrontendように定義されている Deployment オブジェクトに起因します。

apiVersion: apps/v1 #  for k8s versions before 1.9.0 use apps/v1beta2  and before 1.8.0 use extensions/v1beta1
kind: Deployment
metadata:
  name: frontend
spec:
  selector:
    matchLabels:
      app: guestbook
      tier: frontend
  replicas: 3
  template:
    metadata:
      labels:
        app: guestbook
        tier: frontend
    spec:
      containers:
      - name: php-redis
        image: gcr.io/google-samples/gb-frontend:v4
        resources:
          requests:
            cpu: 100m
            memory: 100Mi
        env:
        - name: GET_HOSTS_FROM
          value: dns
          # If your cluster config does not include a dns service, then to
          # instead access environment variables to find service host
          # info, comment out the 'value: dns' line above, and uncomment the
          # line below:
          # value: env
        ports:
        - containerPort: 8080

アクセス許可に関する解決策を見rootてきましたが、何もうまくいきませんでした

4

0 に答える 0