summaryrefslogtreecommitdiffstats
path: root/docs/sdc-helm-validator.rst
AgeCommit message (Expand)AuthorFilesLines
2022-11-10Fix doc configuration on master branchMichaelMorris1-4/+1
2021-05-21Add Documentation of SDC-Helm-Validator containerTomasz Wrobel1-0/+130
n44' href='#n44'>44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  labels:
    app: vnc-portal
  name: vnc-portal
  namespace: "{{ .Values.nsPrefix }}-portal"
spec:
  selector:
    matchLabels:
      app: vnc-portal
  template:
    metadata:
      labels:
        app: vnc-portal
      name: vnc-portal
      annotations:
        pod.beta.kubernetes.io/init-containers: '[
          {
              "args": [
                  "--container-name",
                  "portalapps"
              ],
              "command": [
                  "/root/ready.py"
              ],
              "env": [
                  {
                      "name": "NAMESPACE",
                      "valueFrom": {
                          "fieldRef": {
                              "apiVersion": "v1",
                              "fieldPath": "metadata.namespace"
                          }
                      }
                  }
              ],
              "image": "{{ .Values.image.readiness }}",
              "imagePullPolicy": "{{ .Values.pullPolicy }}",
              "name": "vnc-portal-readiness"
          },
          {
              "args": [
                  "--container-name",
                  "pap"
              ],
              "command": [
                  "/root/ready.py"
              ],
              "env": [
                  {
                      "name": "NAMESPACE",
                      "value": "{{ .Values.nsPrefix }}-policy"
                  }
              ],
              "image": "{{ .Values.image.readiness }}",
              "imagePullPolicy": "{{ .Values.pullPolicy }}",
              "name": "vnc-pap-readiness"
          },
          {
              "args": [
                  "--container-name",
                  "sdc-fe"
              ],
              "command": [
                  "/root/ready.py"
              ],
              "env": [
                  {
                      "name": "NAMESPACE",
                      "value": "{{ .Values.nsPrefix }}-sdc"
                  }
              ],
              "image": "{{ .Values.image.readiness }}",
              "imagePullPolicy": "{{ .Values.pullPolicy }}",
              "name": "vnc-sdc-readiness"
          },
          {
              "args": [
                  "--container-name",
                  "vid-server"
              ],
              "command": [
                  "/root/ready.py"
              ],
              "env": [
                  {
                      "name": "NAMESPACE",
                      "value": "{{ .Values.nsPrefix }}-vid"
                  }
              ],
              "image": "{{ .Values.image.readiness }}",
              "imagePullPolicy": "{{ .Values.pullPolicy }}",
              "name": "vnc-vid-readiness"
          },
          {
              "command": ["/bin/sh","-c"],
              "args": ["echo `host sdc-be.{{ .Values.nsPrefix }}-sdc | awk ''{print$4}''` sdc.api.be.simpledemo.openecomp.org  >> /ubuntu-init/hosts; echo `host portalapps.{{ .Values.nsPrefix }}-portal | awk ''{print$4}''` portal.api.simpledemo.openecomp.org  >> /ubuntu-init/hosts; echo `host pap.{{ .Values.nsPrefix }}-policy | awk ''{print$4}''` policy.api.simpledemo.openecomp.org  >> /ubuntu-init/hosts; echo `host sdc-fe.{{ .Values.nsPrefix }}-sdc | awk ''{print$4}''` sdc.api.simpledemo.openecomp.org  >> /ubuntu-init/hosts; echo `host vid-server.{{ .Values.nsPrefix }}-vid | awk ''{print$4}''` vid.api.simpledemo.openecomp.org >> /ubuntu-init/hosts; echo `host sparky-be.{{ .Values.nsPrefix }}-aai | awk ''{print$4}''` aai.api.simpledemo.openecomp.org  >> /ubuntu-init/hosts"],
              "image": "{{ .Values.image.ubuntuInit }}",
              "imagePullPolicy": "{{ .Values.pullPolicy }}",
              "name": "vnc-init-hosts",
              "volumeMounts": [
                {
                  "name": "ubuntu-init",
                  "mountPath": "/ubuntu-init/"
                }
              ]
          }
          ]'
    spec:
      containers:
      - image: {{ .Values.image.ubuntuDesktop }}
        imagePullPolicy: {{ .Values.pullPolicy }}
        lifecycle:
          postStart:
            exec:
              command: ["/bin/sh", "-c", "cat /ubuntu-init/hosts >> /etc/hosts"]
        env:
        - name: VNC_PASSWORD
          value: password
        name: vnc-portal
        volumeMounts:
        - mountPath: /ubuntu-init/
          name: ubuntu-init
        securityContext:
          privileged: true
      securityContext: {}
      volumes:
        - name: ubuntu-init
          emptyDir: {}
      imagePullSecrets:
      - name: "{{ .Values.nsPrefix }}-docker-registry-key"