Skip to content

Commit 1327510

Browse files
authored
Merge pull request #603 from sassoftware/staging
8.0.0 - March 19, 2025
2 parents 848e151 + 0715ec9 commit 1327510

38 files changed

+283
-1224
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apt-get update && apt-get upgrade -y \
99
&& update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
1010

1111
FROM baseline AS tool_builder
12-
ARG kubectl_version=1.30.6
12+
ARG kubectl_version=1.30.10
1313

1414
WORKDIR /build
1515

@@ -24,9 +24,9 @@ RUN apk add --no-cache git build-base containers-common bash btrfs-progs-dev gli
2424

2525
# Installation
2626
FROM baseline
27-
ARG helm_version=3.16.2
28-
ARG aws_cli_version=2.17.58
29-
ARG gcp_cli_version=496.0.0-0
27+
ARG helm_version=3.17.1
28+
ARG aws_cli_version=2.24.16
29+
ARG gcp_cli_version=513.0.0-0
3030

3131
# Add extra packages
3232
RUN apt-get update && apt-get install --no-install-recommends -y gzip wget git jq ssh sshpass rsync \

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ This project contains Ansible code that creates a baseline cluster in an existin
1919
- Create affinity rules such that processes are targeted to appropriately labeled nodes
2020
- Create pod disruption budgets for each service such that cluster maintenance will not let the last instance of a service go down (during a node maintenance operation, for example)
2121
- Use kustomize to mount user private (home) directories and data directories on CAS nodes and on compute server instances
22-
- Deploy [SAS Viya Monitoring for Kubernetes](https://github.com/sassoftware/viya4-monitoring-kubernetes)
2322
- Deploy MPP or SMP CAS servers
2423

2524
- Manage SAS Viya Platform Deployments
@@ -260,7 +259,7 @@ Create and manage deployments using one of the following methods:
260259

261260
### DNS
262261

263-
During the installation, an ingress load balancer can be installed for the SAS Viya platform and for the monitoring and logging stack. The host name for these services must be registered with your DNS provider in order to resolve to the LoadBalancer endpoint. This can be done by creating a record for each unique ingress controller host.
262+
During the installation, an ingress load balancer can be installed for the SAS Viya platform. The host name for these services must be registered with your DNS provider in order to resolve to the LoadBalancer endpoint. This can be done by creating a record for each unique ingress controller host.
264263

265264
However, when you are managing multiple SAS Viya platform deployments, creating these records can be time-consuming. In such a case, SAS recommends creating a DNS record that points to the ingress controller's endpoint. The endpoint might be an IP address or FQDN, depending on the cloud provider. Take these steps:
266265

docs/CONFIG-VARS.md

Lines changed: 63 additions & 68 deletions
Large diffs are not rendered by default.

docs/Troubleshooting.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Troubleshooting
22

33
- [Troubleshooting](#troubleshooting)
4-
- [Viya4 Monitoring and Logging](#viya4-monitoring-and-logging)
54
- [SAS Viya Orchestration Tool](#sas-viya-orchestration-tool)
65
- [SAS Viya Deployment Operator](#sas-viya-deployment-operator)
76
- [EKS - Cluster Autoscaler Installation](#eks---cluster-autoscaler-installation)
@@ -26,37 +25,16 @@ Example:
2625
--volume $HOME:/data \
2726
--volume $HOME/ansible-vars.yaml:/config/config \
2827
--volume $HOME/viya4-iac-azure/terraform.tfstate:/config/tfstate \
29-
viya4-deployment --tags "baseline,viya,cluster-logging,cluster-monitoring,viya-monitoring,install" -vvv
28+
viya4-deployment --tags "baseline,viya,install" -vvv
3029
```
3130

3231
```bash
3332
ansible-playbook \
3433
-e CONFIG=$HOME/ansible-vars.yaml \
3534
-e TFSTATE=$HOME/viya4-iac-aws/terraform.tfstate \
36-
viya4-deployment --tags "baseline,viya,cluster-logging,cluster-monitoring,viya-monitoring,install" -vvv
35+
viya4-deployment --tags "baseline,viya,install" -vvv
3736
```
3837

39-
## Viya4 Monitoring and Logging
40-
### Symptom:
41-
While deploying the SAS Viya platform to a cluster with the "cluster-logging" and "install" Ansible task tags specified, the following error message is encountered.
42-
43-
```bash
44-
TASK [monitoring : cluster-logging - deploy] ********************************************************************************
45-
fatal: [localhost]: FAILED! => changed=false
46-
cmd: /home/user/.ansible/viya4-monitoring-kubernetes/logging/bin/deploy_logging.sh
47-
msg: '[Errno 2] No such file or directory: b''/home/user/.ansible/viya4-monitoring-kubernetes/logging/bin/deploy_logging.sh'''
48-
rc: 2
49-
50-
PLAY RECAP ******************************************************************************************************************
51-
localhost : ok=52 changed=12 unreachable=0 failed=1 skipped=41 rescued=0 ignored=0
52-
```
53-
54-
### Diagnosis:
55-
The cluster-logging task tried to deploy an older, incompatible release of sassoftware/viya4-monitoring-kubernetes (i.e. a release earlier than version 1.2.0) using a release of sassoftware/viya4-deployment at release 5.0.0 or later.
56-
Release 5.0.0 (and later) of sassoftware/viya4-deployment is only compatible with sassoftware/viya4-monitoring-kubernetes release 1.2.0 (and later).
57-
58-
### Solution:
59-
When using sassoftware/viya4-deployment releases 5.0.0 or later, specify either the stable branch or a valid sassoftware/viya4-monitoring-kubernetes release tag of 1.2.0 or later for the value of the V4M_VERSION sassoftware/viya4-deployment variable, For more details on supported variables, refer to [CONFIG-VARS.md](./CONFIG-VARS.md)
6038

6139
## SAS Viya Orchestration Tool
6240

docs/user/AnsibleUsage.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,12 @@ Actions are used to install or uninstall software. One must be set when running
4343

4444
### Tasks
4545

46-
Any number of tasks can be run at the same time. An action can run against a single task or all tasks.
46+
More than one task can be run at the same time. An action can run against a single task or all tasks.
4747

4848
| Name | Description |
4949
| :--- | :--- |
5050
| baseline | Installs cluster level tooling needed for all SAS Viya platform deployments. These may include, cert-manager, ingress-nginx, nfs-client-provisioners and more. |
5151
| viya | Deploys the SAS Viya platform |
52-
| cluster-logging | Installs cluster-wide logging using the [viya4-monitoring-kubernetes](https://github.com/sassoftware/viya4-monitoring-kubernetes) project. |
53-
| cluster-monitoring | Installs cluster-wide monitoring using the [viya4-monitoring-kubernetes](https://github.com/sassoftware/viya4-monitoring-kubernetes) project. |
54-
| viya-monitoring | Installs viya namespace level monitoring using the [viya4-monitoring-kubernetes](https://github.com/sassoftware/viya4-monitoring-kubernetes) project. |
5552

5653
### Examples
5754

@@ -63,18 +60,18 @@ Any number of tasks can be run at the same time. An action can run against a sin
6360
-e CONFIG=$HOME/deployments/dev-cluster/dev-namespace/ansible-vars.yaml \
6461
-e TFSTATE=$HOME/deployments/dev-cluster/terraform.tfstate \
6562
-e JUMP_SVR_PRIVATE_KEY=$HOME/.ssh/id_rsa \
66-
playbooks/playbook.yaml --tags "baseline,viya,cluster-logging,cluster-monitoring,viya-monitoring,install"
63+
playbooks/playbook.yaml --tags "baseline,viya,install"
6764
```
6865

69-
- I have a custom built cluster and want to baseline and deploy viya only
66+
- I have a custom built cluster and want to install baseline dependencies only
7067

7168
```bash
7269
ansible-playbook \
7370
-e BASE_DIR=$HOME/deployments \
7471
-e KUBECONFIG=$HOME/deployments/.kube/config \
7572
-e CONFIG=$HOME/deployments/dev-cluster/dev-namespace/ansible-vars.yaml \
7673
-e JUMP_SVR_PRIVATE_KEY=$HOME/.ssh/id_rsa \
77-
playbooks/playbook.yaml --tags "baseline,viya,install"
74+
playbooks/playbook.yaml --tags "baseline,install"
7875
```
7976

8077
- I want to modify a customization under site-config for an existing viya deployment and reapply the manifest. I wish to continue to use the same deployment assets rather than pull the latest copy.
@@ -88,26 +85,26 @@ Any number of tasks can be run at the same time. An action can run against a sin
8885
playbooks/playbook.yaml --tags "viya,install"
8986
```
9087

91-
- I have an existing cluster with viya installed and want to install another viya instance in a different namespace with monitoring
88+
- I have an existing cluster with viya installed and want to install another viya instance in a different namespace
9289

9390
```bash
9491
ansible-playbook \
9592
-e BASE_DIR=$HOME/deployments \
9693
-e CONFIG=$HOME/deployments/dev-cluster/test-namespace/ansible-vars.yaml \
9794
-e TFSTATE=$HOME/deployments/dev-cluster/terraform.tfstate \
9895
-e JUMP_SVR_PRIVATE_KEY=$HOME/.ssh/id_rsa \
99-
playbooks/playbook.yaml --tags "viya,viya-monitoring,install"
96+
playbooks/playbook.yaml --tags "viya,install"
10097
```
10198

102-
- I have a cluster with a single viya install as well as the monitoring and logging stack. I want to uninstall everything
99+
- I have a cluster with a single viya install. I want to uninstall everything
103100

104101
```bash
105102
ansible-playbook \
106103
-e BASE_DIR=$HOME/deployments \
107104
-e CONFIG=$HOME/deployments/dev-cluster/test-namespace/ansible-vars.yaml \
108105
-e TFSTATE=$HOME/deployments/dev-cluster/terraform.tfstate \
109106
-e JUMP_SVR_PRIVATE_KEY=$HOME/.ssh/id_rsa \
110-
playbooks/playbook.yaml --tags "baseline,viya,cluster-logging,cluster-monitoring,viya-monitoring,uninstall"
107+
playbooks/playbook.yaml --tags "baseline,viya,uninstall"
111108
```
112109

113110
### Ansible Config
@@ -116,4 +113,9 @@ In the examples above, we are running `ansible-playbook` from within the project
116113

117114
```bash
118115
export ANSIBLE_CONFIG=${WORKSPACE}/viya4-deployment/ansible.cfg
119-
```
116+
```
117+
118+
### Monitoring and Logging
119+
120+
To install SAS Viya Monitoring for Kubernetes, see the GitHub project https://github.com/sassoftware/viya4-monitoring-kubernetes for scripts and customization options
121+
to deploy metric monitoring, alerts and log-message aggregation for SAS Viya.

docs/user/DockerUsage.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,12 @@ Actions are used to install or uninstall software. One must be set when running
5757

5858
### Tasks
5959

60-
Any number of tasks can be run at the same time. An action can run against a single task or all tasks.
60+
More than one task can be run at the same time. An action can run against a single task or all tasks.
6161

6262
| Name | Description |
6363
| :--- | :--- |
6464
| baseline | Installs cluster level tooling needed for all SAS Viya platform deployments. These may include, cert-manager, ingress-nginx, nfs-client-provisioners and more. |
6565
| viya | Deploys the SAS Viya platform |
66-
| cluster-logging | Installs cluster-wide logging using the [viya4-monitoring-kubernetes](https://github.com/sassoftware/viya4-monitoring-kubernetes) project. |
67-
| cluster-monitoring | Installs cluster-wide monitoring using the [viya4-monitoring-kubernetes](https://github.com/sassoftware/viya4-monitoring-kubernetes) project. |
68-
| viya-monitoring | Installs viya namespace level monitoring using the [viya4-monitoring-kubernetes](https://github.com/sassoftware/viya4-monitoring-kubernetes) project. |
6966

7067
### Examples
7168

@@ -79,10 +76,10 @@ Any number of tasks can be run at the same time. An action can run against a sin
7976
--volume $HOME/deployments/dev-cluster/dev-namespace/ansible-vars.yaml:/config/config \
8077
--volume $HOME/deployments/dev-cluster/terraform.tfstate:/config/tfstate \
8178
--volume $HOME/.ssh/id_rsa:/config/jump_svr_private_key \
82-
viya4-deployment --tags "baseline,viya,cluster-logging,cluster-monitoring,viya-monitoring,install"
79+
viya4-deployment --tags "baseline,viya,install"
8380
```
8481

85-
- I have a custom built cluster and want to baseline and deploy viya only
82+
- I have a custom built cluster and want to install baseline dependencies only
8683

8784
```bash
8885
docker run --rm \
@@ -92,7 +89,7 @@ Any number of tasks can be run at the same time. An action can run against a sin
9289
--volume $HOME/deployments/dev-cluster/.kube/config:/config/kubeconfig \
9390
--volume $HOME/deployments/dev-cluster/dev-namespace/ansible-vars.yaml:/config/config \
9491
--volume $HOME/.ssh/id_rsa:/config/jump_svr_private_key \
95-
viya4-deployment --tags "baseline,viya,install"
92+
viya4-deployment --tags "baseline,install"
9693
```
9794

9895
- I want to modify a customization under site-config for an existing viya deployment and reapply the manifest. I wish to continue to use the same deployment assets rather than pull the latest copy.
@@ -109,7 +106,7 @@ Any number of tasks can be run at the same time. An action can run against a sin
109106
viya4-deployment --tags "viya,install"
110107
```
111108

112-
- I have an existing cluster with viya installed and want to install another viya instance in a different namespace with monitoring
109+
- I have an existing cluster with viya installed and want to install another viya instance in a different namespace
113110

114111
```bash
115112
docker run --rm \
@@ -119,10 +116,10 @@ Any number of tasks can be run at the same time. An action can run against a sin
119116
--volume $HOME/deployments/dev-cluster/test-namespace/ansible-vars.yaml:/config/config \
120117
--volume $HOME/deployments/dev-cluster/.ssh/id_rsa:/config/jump_svr_private_key \
121118
--volume $HOME/deployments/dev-cluster/.kube/config:/config/kubeconfig \
122-
viya4-deployment --tags "viya,viya-monitoring,install"
119+
viya4-deployment --tags "viya,install"
123120
```
124121

125-
- I have a cluster with a single viya install as well as the monitoring and logging stack. I want to uninstall everything
122+
- I have a cluster with a single viya install. I want to uninstall everything
126123

127124
```bash
128125
docker run --rm \
@@ -131,5 +128,10 @@ Any number of tasks can be run at the same time. An action can run against a sin
131128
--volume $HOME/deployments:/data \
132129
--volume $HOME/deployments/dev-cluster/dev-namespace/ansible-vars.yaml:/config/config \
133130
--volume $HOME/deployments/dev-cluster/terraform.tfstate:/config/tfstate \
134-
viya4-deployment --tags "baseline,viya,cluster-logging,cluster-monitoring,viya-monitoring,uninstall"
131+
viya4-deployment --tags "baseline,viya,uninstall"
135132
```
133+
134+
### Monitoring and Logging
135+
136+
To install SAS Viya Monitoring for Kubernetes, see the GitHub project https://github.com/sassoftware/viya4-monitoring-kubernetes for scripts and customization options
137+
to deploy metric monitoring, alerts and log-message aggregation for SAS Viya.

docs/user/DockerVolumeMounts.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -25,37 +25,6 @@ Ansible vars to docker volume mounts mappings. For full listing of config vars s
2525
| V4_CFG_LICENSE | `--volume <desired_path>:/config/v4_cfg_license `|
2626
| V4_CFG_CERTS | `--volume <desired_path>:/config/v4_cfg_certs `|
2727

28-
## Monitoring and Logging
29-
30-
| Ansible Var | Docker Mount |
31-
| :--- | ---: |
32-
| V4M_CERT | `--volume <desired_path>:/config/v4m_cert `|
33-
| V4M_KEY | `--volume <desired_path>:/config/v4m_key `|
34-
| V4M_CUSTOM_CONFIG_USER_DIR | `--volume <desired_path>:/config/v4m_custom_config_user_dir `|
35-
36-
### Monitoring
37-
38-
| Ansible Var | Docker Mount |
39-
| :--- | ---: |
40-
| V4M_PROMETHEUS_CERT | `--volume <desired_path>:/config/v4m_prometheus_cert `|
41-
| V4M_PROMETHEUS_KEY | `--volume <desired_path>:/config/v4m_prometheus_key `|
42-
| | | | | | | |
43-
| V4M_GRAFANA_CERT | `--volume <desired_path>:/config/v4m_grafana_cert `|
44-
| V4M_GRAFANA_KEY | `--volume <desired_path>:/config/v4m_grafana_key `|
45-
| | | | | | | |
46-
| V4M_ALERTMANAGER_CERT | `--volume <desired_path>:/config/v4m_alertmanager_cert `|
47-
| V4M_ALERTMANAGER_KEY | `--volume <desired_path>:/config/v4m_alertmanager_key `|
48-
49-
### Logging
50-
51-
| Ansible Var | Docker Mount |
52-
| :--- | ---: |
53-
| V4M_KIBANA_CERT | `--volume <desired_path>:/config/v4m_kibana_cert `|
54-
| V4M_KIBANA_KEY | `--volume <desired_path>:/config/v4m_kibana_key `|
55-
| | | | | | | |
56-
| V4M_ELASTICSEARCH_CERT | `--volume <desired_path>:/config/v4m_elasticsearch_cert `|
57-
| V4M_ELASTICSEARCH_KEY | `--volume <desired_path>:/config/v4m_elasticsearch_key `|
58-
5928
## TLS
6029

6130
| Ansible Var | Docker Mount |

examples/ansible-vars-iac.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ V4_CFG_CONSUL_ENABLE_LOADBALANCER: false
3333
## SAS/CONNECT
3434
V4_CFG_CONNECT_ENABLE_LOADBALANCER: false
3535

36-
## Monitoring and Logging
37-
## uncomment and update the below values when deploying the viya4-monitoring-kubernetes stack
38-
# V4M_BASE_DOMAIN: <base_domain>
39-
4036
## Viya Start and Stop Schedule
4137
## uncomment and update the values below with CronJob schedule expressions if you would
4238
## like to start and stop your Viya Deployment on a schedule

playbooks/playbook.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@
5050
when: ('baseline' in ansible_run_tags) and ('install' in ansible_run_tags)
5151
tags:
5252
- baseline
53-
- name: Monitoring role - cluster
54-
include_role:
55-
name: monitoring
56-
tags:
57-
- cluster-monitoring
58-
- cluster-logging
5953
- name: Multi-tenancy role
6054
include_role:
6155
name: multi-tenancy
@@ -68,12 +62,6 @@
6862
tags:
6963
- viya
7064
- multi-tenancy
71-
- name: Monitoring role - namespace
72-
include_role:
73-
name: monitoring
74-
tasks_from: viya-monitoring
75-
tags:
76-
- viya-monitoring
7765
- name: baseline role uninstall # noqa: name[casing]
7866
include_role:
7967
name: baseline

0 commit comments

Comments
 (0)