Пример манифеста для создания конфигмапа, деплоймента, сервиса и ингреса для OpenVAS
manifest.yml
apiVersion: v1 kind: ConfigMap metadata: name: openvas namespace: default labels: app: openvas data: PUBLIC_HOSTNAME: "openvas.artem.services" OV_PASSWORD: "MY_PASSWORD" --- apiVersion: apps/v1 kind: Deployment metadata: name: openvas namespace: default spec: replicas: 1 selector: matchLabels: app: openvas template: metadata: labels: app: openvas spec: containers: - name: openvas image: mikesplain/openvas imagePullPolicy: "IfNotPresent" ports: - containerPort: 443 envFrom: - configMapRef: name: openvas --- apiVersion: v1 kind: Service metadata: name: openvas namespace: default spec: ports: - port: 443 protocol: TCP targetPort: 443 selector: app: openvas --- apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: nginx.ingress.kubernetes.io/rewrite-target: / name: openvas namespace: default spec: rules: - host: openvas.artem.services http: paths: - backend: serviceName: openvas servicePort: 443 path: /
Логин по умолчанию — "admin", если не задаете пароль через переменную "OV_PASSWORD", то пароль — "admin"